Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17196

Android: Sending nav event throws java NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: Release 3.3.0, Release 3.4.0
    • Component/s: Android
    • Environment:

      Environment:
      Appc Studio : 3.3.0.201406171619
      Ti SDK : 3.3.0.v20140620194913
      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

    • Sprint:
      2014 Sprint 13 SDK

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ayeung Allen Yeung
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Ping Wang
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18879
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration