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

Android: TiPlatformHelper NPE on Galaxy Tab

    Details

      Description

      {html}<div><p>Looks like we rely on the internal "tiApp" to be set from
      initialize(), but we can just use the instance from
      TiApplication.getInstance() to avoid the NPE. Here's the trace:</p>
      <pre>
      <code>
      E/TiUncaughtHandler(31008): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.appcelerator.kitchensink/org.appcelerator.kitchensink.KitchensinkActivity}: java.lang.NullPointerException
      E/TiUncaughtHandler(31008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
      E/TiUncaughtHandler(31008): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
      E/TiUncaughtHandler(31008): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
      E/TiUncaughtHandler(31008): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
      E/TiUncaughtHandler(31008): at android.os.Handler.dispatchMessage(Handler.java:99)
      E/TiUncaughtHandler(31008): at android.os.Looper.loop(Looper.java:123)
      E/TiUncaughtHandler(31008): at android.app.ActivityThread.main(ActivityThread.java:4627)
      E/TiUncaughtHandler(31008): at java.lang.reflect.Method.invokeNative(Native Method)
      E/TiUncaughtHandler(31008): at java.lang.reflect.Method.invoke(Method.java:521)
      E/TiUncaughtHandler(31008): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
      E/TiUncaughtHandler(31008): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
      E/TiUncaughtHandler(31008): at dalvik.system.NativeStart.main(Native Method)
      E/TiUncaughtHandler(31008): Caused by: java.lang.NullPointerException
      E/TiUncaughtHandler(31008): at org.appcelerator.titanium.util.TiPlatformHelper.getMacaddress(TiPlatformHelper.java:306)
      E/TiUncaughtHandler(31008): at org.appcelerator.titanium.analytics.TiAnalyticsEventFactory.createAppEnrollEvent(TiAnalyticsEventFactory.java:66)
      E/TiUncaughtHandler(31008): at org.appcelerator.titanium.TiApplication.setRootActivity(TiApplication.java:263)
      E/TiUncaughtHandler(31008): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:118)
      E/TiUncaughtHandler(31008): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
      E/TiUncaughtHandler(31008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
      E/TiUncaughtHandler(31008): ... 11 more</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              mculpepper Marshall Culpepper
              Reporter:
              mculpepper Marshall Culpepper
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration