{ "id": "62139", "key": "TIMOB-1507", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-20T15:50:38.000+0000", "created": "2011-04-15T02:54:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "imageview", "tableview" ], "versions": [], "issuelinks": [ { "id": "20042", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:51:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

It looks like loadDrawable() in TiBackgroundImageLoadTask (line\n58) is returning a BitmapDrawable that has a null Bitmap in some\ninstances, we need to more gracefully handle that situation. See\nhelpdesk #35081.

{html}", "attachment": [], "flagged": false, "summary": "Android: Remote images in ImageView/TableView sporadically causes NPE", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125882", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

For another customer yesterday I made this change:

\n

\nhttp://github.com/appcelerator/titanium_mobile/commit/91ddf8884ecc9...

\n

I thought maybe the NPE could be the context ref itself. But\nindeed maybe it's at the Bitmap level.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:54:40.000+0000", "updated": "2011-04-15T02:54:40.000+0000" }, { "id": "125883", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Add'l commit to try to eliminate NPEs from null bitmap:
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/a750b594219fc...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:54:40.000+0000", "updated": "2011-04-15T02:54:40.000+0000" }, { "id": "125884", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

The last commit doesn't address the perhaps deeper\nproblem as to why a bitmap might be null in the first place.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:54:40.000+0000", "updated": "2011-04-15T02:54:40.000+0000" }, { "id": "125885", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [a750b594219fccef60906e5a886178da991b35dc])\n[#1507 status:open] Try to eliminate the\noccasional NPEs from background image loading by verifying bitmap\nis not null before accessing its properties \nhttp://github.com/appcelerator/titanium_mobile/commit/a750b594219fc...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:54:40.000+0000", "updated": "2011-04-15T02:54:40.000+0000" }, { "id": "215225", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "No test case, unable to reproduce and link doesn't work, marking ticket as invalid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-20T15:50:38.000+0000", "updated": "2012-08-20T15:50:38.000+0000" }, { "id": "414924", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:51:19.000+0000", "updated": "2017-03-22T20:51:19.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }