{ "id": "132154", "key": "TIMOB-17196", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-24T20:04:28.000+0000", "created": "2014-06-23T22:22:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_analytics", "qe-3.3.0", "qe-testadded", "regression" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-28T20:53:32.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": "h5. Description:\r\n1. Build & run the analytics test app from titanium_mobile_test_internal/Feature test/Analytics in github for android device.\r\n2. Make sure your device is on staging. Follow the steps here: https://wiki.appcelerator.org/display/tp/Analytics+Test+Plan.\r\n2. Tap on the Nav event button.\r\n\r\nh5. Actual Result:\r\n1. We see error:\r\n{code}\r\n06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [150,92516] ----- Titanium Javascript Runtime Error -----\r\n06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [0,92516] - In app.js:62,15\r\n06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [0,92516] - Message: Uncaught Error: Java Exception occurred\r\n06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [1,92517] - Source: \tTi.Analytics.navEvent('navEventOne', 'navEventTwo', 'navEvent.testButton');\r\n06-23 15:12:45.950: E/V8Exception(9383): Exception occurred at app.js:62: Uncaught Error: Java Exception occurred\r\n{code}\r\n\r\nADB logcat logs:\r\n{code}\r\nW/System.err( 9383): java.lang.NullPointerException\r\nW/System.err( 9383): \tat ti.modules.titanium.analytics.AnalyticsModule.navEvent(AnalyticsModule.java:59)\r\nW/System.err( 9383): \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\nW/System.err( 9383): \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64)\r\nW/System.err( 9383): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884)\r\nW/System.err( 9383): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107)\r\nW/System.err( 9383): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)\r\nW/System.err( 9383): \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\nW/System.err( 9383): \tat android.os.Looper.loop(Looper.java:136)\r\nW/System.err( 9383): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n{code}\r\n\r\n2. No Nav event is sent.\r\n\r\nh5. Expected Result:\r\n1. We should not get any Java Exception & nav event should be sent successfully.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Sending nav event throws java NullPointerException", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 3.3.0.201406171619\r\nTi SDK : 3.3.0.v20140620194913\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc2\r\nCLI - 3.3.0-rc2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "310584", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/5841\r\n3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5842", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T00:17:11.000+0000", "updated": "2014-06-24T00:17:11.000+0000" }, { "id": "310780", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nNav events are showing up as expected in staging & on dashboard.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406231625\r\nTi SDK : 3.3.0.v20140624130120\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc2\r\nCLI - 3.3.0-rc2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T22:28:39.000+0000", "updated": "2014-06-24T22:28:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }