{ "id": "100480", "key": "AC-1814", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-10T09:53:38.000+0000", "created": "2012-09-05T07:29:54.000+0000", "labels": [ "image", "imageview" ], "versions": [], "issuelinks": [], "assignee": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:43.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "see the error in the console:\r\nline = 31;\r\n message = \"invalid image type. expected TiBlob, String, TiFile, was: NSNull in -[TiUIImageView setImage_:] (TiUIImageView.m:658)\";\r\n\r\nSame error with imageView.image = null;\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n\timage:'http://www.biography.com/imported/images/Biography/Images/Profiles/J/Steven-Jobs-9354805-2-402.jpg',\r\n\twidth:261,\r\n\theight:178,\r\n\ttop:20\r\n});\r\n\r\nimageView.addEventListener('load', function()\r\n{\r\n\tTi.API.info('LOAD CALLED');\r\n});\r\nwin.add(imageView);\r\n\r\nvar l = Titanium.UI.createLabel({\r\n\ttext:'Click Image',\r\n\tbottom:30,\r\n\tcolor:'#999',\r\n\theight:'auto',\r\n\twidth:300,\r\n\ttextAlign:'center'\r\n});\r\nwin.add(l);\r\n\r\nfunction clicker()\r\n{\r\n\tvar test = imageView.image;\r\n\tTi.API.info(test);\r\n\tif (imageView.image && imageView.image !== '' && imageView.image !== null)\r\n\t\timageView.image = '';\r\n\telse\r\n\t\timageView.image = 'http://www.biography.com/imported/images/Biography/Images/Profiles/J/Steven-Jobs-9354805-2-402.jpg';\r\n}\r\n\r\nimageView.addEventListener('click', clicker);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "[ios]imageview image doesnt accept null or ''", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 2.2.0 (master)\r\nios 5.1", "comment": { "comments": [ { "id": "284229", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~farfromrefuge] We were reviewing the issues and try to reproduce this one with titanium 3.1.3. Looks like it got fixed with the newer versions as we were not able to reproduce it. Please let us know if the problem still exists or else we will close this ticket.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-13T19:09:51.000+0000", "updated": "2013-12-13T19:09:51.000+0000" }, { "id": "284337", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "@Ritu: yes it has been after a merged PR\nhttps://github.com/appcelerator/titanium_mobile/commit/6a82886ce4f3208a2b3849a6934c9720d62f97f1", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-12-14T09:18:53.000+0000", "updated": "2013-12-14T09:18:53.000+0000" }, { "id": "284381", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as this issue has been resolved as per Martin's confirmation.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-15T22:07:13.000+0000", "updated": "2013-12-15T22:07:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }