{ "id": "63508", "key": "TIMOB-2876", "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": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:19.000+0000", "created": "2011-04-15T03:31:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "platform", "release-1.6.0", "reported-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:19.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}

Looks like we rely on the internal \"tiApp\" to be set from\ninitialize(), but we can just use the instance from\nTiApplication.getInstance() to avoid the NPE. Here's the trace:

\n
\n\nE/TiUncaughtHandler(31008): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.appcelerator.kitchensink/org.appcelerator.kitchensink.KitchensinkActivity}: java.lang.NullPointerException\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)\nE/TiUncaughtHandler(31008):     at android.os.Handler.dispatchMessage(Handler.java:99)\nE/TiUncaughtHandler(31008):     at android.os.Looper.loop(Looper.java:123)\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread.main(ActivityThread.java:4627)\nE/TiUncaughtHandler(31008):     at java.lang.reflect.Method.invokeNative(Native Method)\nE/TiUncaughtHandler(31008):     at java.lang.reflect.Method.invoke(Method.java:521)\nE/TiUncaughtHandler(31008):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)\nE/TiUncaughtHandler(31008):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)\nE/TiUncaughtHandler(31008):     at dalvik.system.NativeStart.main(Native Method)\nE/TiUncaughtHandler(31008): Caused by: java.lang.NullPointerException\nE/TiUncaughtHandler(31008):     at org.appcelerator.titanium.util.TiPlatformHelper.getMacaddress(TiPlatformHelper.java:306)\nE/TiUncaughtHandler(31008):     at org.appcelerator.titanium.analytics.TiAnalyticsEventFactory.createAppEnrollEvent(TiAnalyticsEventFactory.java:66)\nE/TiUncaughtHandler(31008):     at org.appcelerator.titanium.TiApplication.setRootActivity(TiApplication.java:263)\nE/TiUncaughtHandler(31008):     at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:118)\nE/TiUncaughtHandler(31008):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\nE/TiUncaughtHandler(31008):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)\nE/TiUncaughtHandler(31008):     ... 11 more\n
{html}", "attachment": [], "flagged": false, "summary": "Android: TiPlatformHelper NPE on Galaxy Tab", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129602", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0b7f8b674cc29ae73424f2c5de1375449388ef38])\nuse the static instance of TiApplication that already lives in\ngetInstance(), this removes a dependency on initialize from
\nTiPlatformHelper that's needed from Analytics [#2876\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/0b7f8b674cc2...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:48.000+0000", "updated": "2011-04-15T03:31:48.000+0000" }, { "id": "129603", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [aa8c4515822484c9913232ca92b551ae3920ef76])\nforgot to add TiApplication to last commit [#2876]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/aa8c45158224...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:48.000+0000", "updated": "2011-04-15T03:31:48.000+0000" }, { "id": "129604", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

as per Mr Culpepper: \"the crash in this test was happening on\ninitial launch / fresh install of KitchenSink on the Galaxy Tab.\nmake sure you have KS uninstalled on the tab, then install it and\nrun it from Developer.. if no crashes your golden\"

\n

fresh install of KS on galaxy tab (2.2.2) using [INFO] Titanium SDK version: 1.6.0 (02/03/11\n09:22 a02f7db)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:48.000+0000", "updated": "2011-04-15T03:31:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }