java.lang.NullPointerException

Appcelerator JIRA | Matt Langston | 3 years ago
  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
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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)[TiApplication( 478)]
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)[TiApplication( 478)]
      2. android.os.Looper.loop(Looper.java:130)[TiApplication( 478)]
      3. android.app.ActivityThread.main(ActivityThread.java:3683)[TiApplication( 478)]
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)[TiApplication( 478)]
      2. java.lang.reflect.Method.invoke(Method.java:507)[TiApplication( 478)]
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)[TiApplication( 478)]
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)[TiApplication( 478)]
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)[AndroidRuntime( 478)]
      1 frame