java.lang.NullPointerException

Appcelerator JIRA | Matt Langston | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Our partner Alfresco discovered this issue when trying to build their Alfresco SDK test harness for Android, using SDK 3.1.3. This is stopping them progressing with the Android version. The issue is in the ListViews in the AlfrescoTestHarness Alloy project. These work fine for iOS, but cause an exception on Android. I have attached the source zip to this ticket, and this is the exception that occurs, during app start up (before any of our code is called): {code} [ERROR][TiApplication( 478)] (main) [8065,10751] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.1.3,2013/09/18 12:01,222f4d1 [ERROR][TiApplication( 478)] java.lang.NullPointerException [ERROR][TiApplication( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157) [ERROR][TiApplication( 478)] at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR][TiApplication( 478)] at android.os.Looper.loop(Looper.java:130) [ERROR][TiApplication( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683) [ERROR][TiApplication( 478)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 478)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][TiApplication( 478)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 478)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 478)] java.lang.NullPointerException [ERROR][AndroidRuntime( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157) [ERROR][AndroidRuntime( 478)] at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR][AndroidRuntime( 478)] at android.os.Looper.loop(Looper.java:130) [ERROR][AndroidRuntime( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683) [ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][AndroidRuntime( 478)] at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 3 years ago | Matt Langston
    java.lang.NullPointerException
  2. 0

    Our partner Alfresco discovered this issue when trying to build their Alfresco SDK test harness for Android, using SDK 3.1.3. This is stopping them progressing with the Android version. The issue is in the ListViews in the AlfrescoTestHarness Alloy project. These work fine for iOS, but cause an exception on Android. I have attached the source zip to this ticket, and this is the exception that occurs, during app start up (before any of our code is called): {code} [ERROR][TiApplication( 478)] (main) [8065,10751] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.1.3,2013/09/18 12:01,222f4d1 [ERROR][TiApplication( 478)] java.lang.NullPointerException [ERROR][TiApplication( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157) [ERROR][TiApplication( 478)] at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR][TiApplication( 478)] at android.os.Looper.loop(Looper.java:130) [ERROR][TiApplication( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683) [ERROR][TiApplication( 478)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 478)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][TiApplication( 478)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 478)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 478)] java.lang.NullPointerException [ERROR][AndroidRuntime( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157) [ERROR][AndroidRuntime( 478)] at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR][AndroidRuntime( 478)] at android.os.Looper.loop(Looper.java:130) [ERROR][AndroidRuntime( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683) [ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][AndroidRuntime( 478)] at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 3 years ago | Matt Langston
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage()
    2. ti.modules.titanium
      ListSectionProxy.handleMessage
      1. ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157)[AndroidRuntime( 478)]
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)[AndroidRuntime( 478)]
      2. android.os.Looper.loop(Looper.java:130)[AndroidRuntime( 478)]
      3. android.app.ActivityThread.main(ActivityThread.java:3683)[AndroidRuntime( 478)]
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)[AndroidRuntime( 478)]
      2. java.lang.reflect.Method.invoke(Method.java:507)[AndroidRuntime( 478)]
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)[AndroidRuntime( 478)]
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)[AndroidRuntime( 478)]
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame