Description:
1. Build & run the analytics test app from titanium_mobile_test_internal/Feature test/Analytics in github for android device.
2. Make sure your device is on staging. Follow the steps here:
https://wiki.appcelerator.org/display/tp/Analytics+Test+Plan.
2. Tap on the Nav event button.
Actual Result:
1. We see error:
06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [150,92516] ----- Titanium Javascript Runtime Error -----
06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [0,92516] - In app.js:62,15
06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [0,92516] - Message: Uncaught Error: Java Exception occurred
06-23 15:12:45.940: E/TiExceptionHandler(9383): (main) [1,92517] - Source: Ti.Analytics.navEvent('navEventOne', 'navEventTwo', 'navEvent.testButton');
06-23 15:12:45.950: E/V8Exception(9383): Exception occurred at app.js:62: Uncaught Error: Java Exception occurred
ADB logcat logs:
W/System.err( 9383): java.lang.NullPointerException
W/System.err( 9383): at ti.modules.titanium.analytics.AnalyticsModule.navEvent(AnalyticsModule.java:59)
W/System.err( 9383): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
W/System.err( 9383): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64)
W/System.err( 9383): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884)
W/System.err( 9383): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107)
W/System.err( 9383): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)
W/System.err( 9383): at android.os.Handler.dispatchMessage(Handler.java:98)
W/System.err( 9383): at android.os.Looper.loop(Looper.java:136)
W/System.err( 9383): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
2. No Nav event is sent.
Expected Result:
1. We should not get any Java Exception & nav event should be sent successfully.
master: https://github.com/appcelerator/titanium_mobile/pull/5841 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5842
Verified the fix. Nav events are showing up as expected in staging & on dashboard. Closing. Environment: Appc Studio : 3.3.0.201406231625 Ti SDK : 3.3.0.v20140624130120 Mac OSX : 10.8.5 Alloy : 1.4.0-rc2 CLI - 3.3.0-rc2 Code Processor: 1.1.1 Nexus 5 - android 4.4.4