{ "id": "63281", "key": "TIMOB-2649", "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": "11236", "name": "Release 1.6.0 M03", "archived": true, "released": true, "releaseDate": "2011-01-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:42.000+0000", "created": "2011-04-15T03:25:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "regression", "release-1.5.2", "release-1.6.0", "reported-1.5.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:42.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}

When launching the app from the install point, not the home\nlauncher on device, an NPE is generated when trying to release\nmodules because it assumes that the app is already set up.

\n

See \nQ&A 92671

\n

~~~\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
\n12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at\ndalvik.system.NativeStart.main(Native Method)
\n12-20 12:46:09.205: ERROR/AndroidRuntime(13433): Caused by:\njava.lang.NullPointerException
\n12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at\norg.appcelerator.titanium.TiRootActivity.onDestroy(TiRootActivity.java:420)
\n12-20 12:46:09.205: ERROR/AndroidRuntime(13433): at\nandroid.app.ActivityThread.performDestroyActivity(ActivityThread.java:3861)
\n12-20 12:46:09.205: ERROR/AndroidRuntime(13433): ... 11 more
\n~~~

{html}", "attachment": [], "flagged": false, "summary": "Android: Detecting Second Instance causes NPE.", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129075", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [86ad0ed0cb9ef1a58aca6ad657c3db2b56f53de1])\n[#2649 state:fixed-in-qa] Added null checking.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/86ad0ed0cb9e...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:50.000+0000", "updated": "2011-04-15T03:25:50.000+0000" }, { "id": "129076", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [9a159e763acfefd09606a665102e595b506795f4])\n[#2649 state:fixed-in-qa] Added null checking.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/9a159e763acf...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:50.000+0000", "updated": "2011-04-15T03:25:50.000+0000" }, { "id": "129077", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

adding release-1.5.2 tag for tracking fix pushed to 1_5_X\nbranch.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:51.000+0000", "updated": "2011-04-15T03:25:51.000+0000" }, { "id": "129078", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

\"an application restart is required\" 2.2.1 (G2), 1.6 (G1)\nTitanium SDK version: 1.5.2 (01/05/11 08:30 981dff2) and Titanium\nSDK version: 1.6.0 (01/04/11 08:01 e49700d)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:51.000+0000", "updated": "2011-04-15T03:25:51.000+0000" }, { "id": "129079", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is still occurring for me on today's (21/02/2011) current\nContinuous 1.6.0 builds.

\n

If I install the App from the marketplace and click from the\nPoint Of Install, (Marketplace or Notifications Bar), the App\ncrashes on first run.

\n

If I open it for first run from the Homescreen the App launches\nwithout error.

\n

Tracelog pastie Here

\n

Question on Developer Q&A Here

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:51.000+0000", "updated": "2011-04-15T03:25:51.000+0000" }, { "id": "129080", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Correction:

\n

Question on Developer Q&A Here

\n

Old Related Question (Now Closed) Here

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:52.000+0000", "updated": "2011-04-15T03:25:52.000+0000" }, { "id": "129081", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sorry I've made a mistake, after taking another look at the\nStack Trace I realised that this is not the same issue, but a\ndifferent issue which causes the same results. (Crash when launched\nfrom point of install).

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:25:52.000+0000", "updated": "2011-04-15T03:25:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }