{ "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.
For another customer yesterday I made this change:
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/91ddf8884ecc9...
\nI thought maybe the NPE could be the context ref itself. But\nindeed maybe it's at the Bitmap level.
Add'l commit to try to eliminate NPEs from null bitmap:
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/a750b594219fc...
The last commit doesn't address the perhaps deeper\nproblem as to why a bitmap might be null in the first place.
(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...