Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3449] Android: ImageView with remote image fails in Honeycomb

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-05-03T13:05:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-13
ComponentsAndroid
Labelsandroid, defect, honeycomb, release-1.7.0, reported-1.7.0
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:45:18.000+0000
Updated2011-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...

Comments

  1. Bill Dawson 2011-04-15

    (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...

JSON Source