{ "id": "115780", "key": "TIMOB-14179", "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": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-08T21:44:24.000+0000", "created": "2013-06-11T13:00:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "preferences", "service", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "30031", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116282", "key": "TIMOB-14324", "fields": { "summary": "Android: openPreferences( ) not working (after installed from google play) ", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-23T17:07:12.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": "The openPreferences rise an error when a service is running and the app was closed and reopened.\r\n\r\nThat is happening in my Alloy app, but can be duplicated on the KitchenSink app.\r\n\r\n\r\n*Steps to duplicate the error on Kitchen Sink*:\r\n# Open the app \r\n# Start the service (Platform/Android services) \r\n# Close the app (back key) \r\n# Re open the app \r\n# Try to open preferences (Base UI/Preferences)\r\n\r\n\r\n\r\n*A red \"Runtime Error\" window will popup saying*:\r\n\r\n*Location*: [14,23] ui/handheld/android/baseui/preferences.js\r\n*Message*: Uncaught Error: Java Exception occurred\r\n*Source*: Titanium.UI.Android.openPreferences();\r\n\r\n\r\n\r\n*The console will show this*:\r\n{code}\r\nW/System.err( 723): java.lang.NullPointerException\r\nW/System.err( 723): at android.content.ComponentName.(ComponentName.java:75)\r\nW/System.err( 723): at android.content.Intent.(Intent.java:3004)\r\nW/System.err( 723): at ti.modules.titanium.ui.android.AndroidModule.openPreferences(AndroidModule.java:101)\r\nW/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\nW/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64)\r\nW/System.err( 723): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:832)\r\nW/System.err( 723): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1056)\r\nW/System.err( 723): at org.appcelerator.titanium.proxy.MenuItemProxy.handleMessage(MenuItemProxy.java:170)\r\nW/System.err( 723): at android.os.Handler.dispatchMessage(Handler.java:95)\r\nW/System.err( 723): at android.os.Looper.loop(Looper.java:137)\r\nW/System.err( 723): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n{code}", "attachment": [ { "id": "40008", "filename": "logOpenPreferences.txt", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T17:23:30.000+0000", "size": 154955, "mimeType": "text/plain" } ], "flagged": false, "summary": "openPreferences rise error when a service is running", "creator": { "name": "ethraza", "key": "ethraza", "displayName": "Allan Brazute", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android, SDK 3.1.0.GA", "comment": { "comments": [ { "id": "257152", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed bug on 3.2CI, Android 4.1.2, Titanium Studio, build: 3.1.0.201303032333", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T15:29:10.000+0000", "updated": "2013-06-11T15:29:10.000+0000" }, { "id": "260699", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/4436", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T00:45:21.000+0000", "updated": "2013-07-03T00:45:21.000+0000" }, { "id": "276365", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. Open preferences does not throw any runtime errors.\r\nThus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201310230601\r\nTi SDK : 3.2.0.v20131022050844\r\nMac OSX : 10.8.5\r\nCLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f\r\nDevice: Samsung Galaxy S4 running android 4.2.2\r\nApp: Kitchensink- 3_1_X", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T17:07:12.000+0000", "updated": "2013-10-23T17:07:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }