{ "id": "62989", "key": "TIMOB-2357", "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": "11227", "name": "Release 1.5.0 M02", "archived": true, "released": true, "releaseDate": "2010-11-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:52.000+0000", "created": "2011-04-15T03:17:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:58:53.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}
Simple app.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nTi.App.Properties.setInt('MyVal', 5);\nTi.App.Properties.getInt('MyVal');\nTi.App.Properties.setDouble('MyValD', 5.0);\nTi.App.Properties.getDouble('MyValD');\nTi.App.Properties.setBool('MyValB', true);\nTi.App.Properties.getBool('MyValB');
\n
\nTrace:
\n\nE/KrollContext( 594): Caused by: java.lang.NullPointerException\nE/KrollContext( 594): at ti.modules.titanium.app.properties.PropertiesModule.getInt(PropertiesModule.java:74)\nE/KrollContext( 594): at ti.modules.titanium.app.properties.PropertiesModuleBindingGen$4.invoke(PropertiesModuleBindingGen.java:218)\nE/KrollContext( 594): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:46)\nE/KrollContext( 594): ... 13 more
\n
(from [1730abde77b2302e7d94e842bc94b52611a09f7c])\n[#2357 state:fixed-in-qa] Don't pass nulls to\nTiProperties methods that use primitives, because they get passed\non to android native methods that expect primitives. \nhttps://github.com/appcelerator/titanium_mobile/commit/1730abde77b2...
pass android 2.1 Sim, Titanium SDK version: 1.5.0 (11/24/10\n12:05 c0aff27)
pass android 1.6 sim, Titanium SDK version: 1.5.0 (11/24/10\n12:05 c0aff27)