{ "id": "83055", "key": "TIMOB-6295", "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": [ { "id": "12087", "description": "", "name": "Sprint 2011-47", "archived": true, "released": true, "releaseDate": "2011-11-28" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T13:50:27.000+0000", "created": "2011-11-23T12:53:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "branch-v8", "module_imageview", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "22496", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104334", "key": "TIMOB-11656", "fields": { "summary": "iOS6: ImageView - failure to download content of image.", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-11-02T19:04:50.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": "http://pastie.org/pastes/2909794/text\r\n\r\nh3. Fail case / Test case\r\n\r\n* Run the app.js below as your application.\r\n\r\n* After the \"good\" image loads, click the \"test\" button.\r\n\r\n* In the fail case, the app will crash. *Expected behavior*: ImageView disappears (because we're calling {{win.remove(imageView)}} and the app will not crash.\r\n\r\nh4. app.js\r\n\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\nvar btnAdd, imageView\r\nwin.add(btnAdd = Ti.UI.createButton({\r\n\ttitle: \"Test\",\r\n\tleft: \"10dp\", width: \"150dp\", bottom: \"5dp\", height: \"40dp\"\r\n}));\r\nwin.add(imageView = Ti.UI.createImageView({\r\n\timage: \"http://www.appcelerator.com/wp-content/themes/appcelerator/img/werehiring_sticker.png\",\r\n\twidth: \"86dp\", height: \"84dp\"\r\n}));\r\nbtnAdd.addEventListener(\"click\", function() {\r\n\timageView.image = \"http://www.google.com\";\r\n\twin.remove(imageView);\r\n});\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ImageView with image property set to an http source can cause NPE if removed from parent while still downloading content", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile 1.8.0.1 3e72f69517, any device/emulator", "comment": { "comments": [ { "id": "173951", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready \r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/766", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-23T18:01:39.000+0000", "updated": "2011-11-23T18:01:39.000+0000" }, { "id": "175018", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111205164258\r\nRuntimes: Android V8/Rhino\r\nStudio: 1.0.7.201112052104\r\nOS: OS X Lion\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, G Slate 3.1, Emulator 4.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T11:38:37.000+0000", "updated": "2011-12-06T11:38:37.000+0000" }, { "id": "178196", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T13:50:03.000+0000", "updated": "2012-01-05T13:50:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }