[TIMOB-7081] Android: toBlob on imageView causes runtime error with an invalid resource
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-02-09T23:50:36.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
| Components | Android |
| Labels | module_runtime, parity, qe-testadded |
| Reporter | Allen Yeung |
| Assignee | Allen Yeung |
| Created | 2012-01-10T15:36:49.000+0000 |
| Updated | 2012-03-03T23:22:50.000+0000 |
Description
Run the following code:
var path = "images/send.png";
var image1 = Ti.UI.createImageView({
image:"images/schat.png"
});
var blob = image1.toBlob();
var win = Ti.UI.createWindow({backgroundColor:'white'});
win.add(image1);
win.open();
NOTE: make sure the resource 'images/schat.png' does not exist
Expected:
No runtime error. It should be a white screen without an image
Actual:
JS runtime error occurs
Closing bug. Verified fix on: SDK build: 1.9.0.v20120113141633 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201122152 Device: Droid 3 (2.3.4)
Reopening and closing this issue to update label and Fix Version field.
updated labels