{ "id": "62575", "key": "TIMOB-1943", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:36.000+0000", "created": "2011-04-15T03:06:14.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:36.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}
failcase app.js (assuming the file name aurelio.txt does\nnot exist in the application data directory :) ):
\n\nTitanium.UI.setBackgroundColor('#000');\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'aurelio.txt');\nvar blob = file.read();\nvar txt = blob.text;
\n
\nIf you run that, the app will crash, and if you look at the log\nyou'll see a stack overflow.
\nExpected behavior: see a NullPointerException
\ninstead. (Developers should check file.exists()
before\ntrying to access the file.)
(from [2d6dc2218e90e485e5485379e9828d2ed0ec94bf])\n[#1943 state:fixed-in-qa] In getInputStream,\ndon't let caught exception fall throught to default of swtich\nstatement \nhttp://github.com/appcelerator/titanium_mobile/commit/2d6dc2218e90e...
1.4.2.4ce7ff G1 running 1.6, 2.2 simulator