[TIMOB-3449] Android: ImageView with remote image fails in Honeycomb
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-03T13:05:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-13 |
Components | Android |
Labels | android, defect, honeycomb, release-1.7.0, reported-1.7.0 |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:45:18.000+0000 |
Updated | 2011-05-03T13:05:23.000+0000 |
Description
Fail-case app.js, which is supposed to show http://developer.appcelerator.com/assets/img/a-logo.png">this image in an ImageView:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff'
});
var iv = Ti.UI.createImageView({
height: "auto", width: "auto",
image: 'http://developer.appcelerator.com/assets/img/a-logo.png'
});
win.add(iv);
win.open();
When you run it in Honeycomb, the image will not appear and you will see this exception if you look at logcat:
E/TiDownloadManager( 1920): java.lang.NullPointerException
E/TiDownloadManager( 1920): at org.appcelerator.titanium.util.TiResponseCache.makeLowerCaseHeaders(TiResponseCache.java:302)
E/TiDownloadManager( 1920): at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:314)
etc...
(from [b1ffd1bd483fe5e85c9db8028934776796c03cf0]) Do null check when looking at http response header keys, since Honeycomb includes "HTTP/1.1 200 OK" as one of the headers. [#3449] https://github.com/appcelerator/titanium_mobile/commit/b1ffd1bd483fe5e85c9db8028934776796c03cf0"> https://github.com/appcelerator/titanium_mobile/commit/b1ffd1bd483f...