java.lang.NullPointerException

Appcelerator JIRA | Shuo Liang | 2 years ago
  1. 0

    h5.Reproduce Steps: Simply run the following alloy project(attached views, styles and controllers folder) h5.Expect Result: Should display a screen with battery and network info. h5.Actual Result: Return a error, like following: {code} [ERROR] TiApplication: (main) [8069,13162] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] TiApplication: java.lang.NullPointerException [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryReceiver(PlatformModule.java:292) [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryStateReceiver(PlatformModule.java:231) [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.eventListenerAdded(PlatformModule.java:244) [ERROR] TiApplication: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1096) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:136) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5050) [ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) [ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h5.Note: If reduce the number of dummyWindow to 2, it works well, And I can only reproduce it on Samsung Galaxy on Android 4.2.2, it works as expected on Motorola on Android 4.4.2

    Appcelerator JIRA | 2 years ago | Shuo Liang
    java.lang.NullPointerException
  2. 0

    h5.Reproduce Steps: Simply run the following alloy project(attached views, styles and controllers folder) h5.Expect Result: Should display a screen with battery and network info. h5.Actual Result: Return a error, like following: {code} [ERROR] TiApplication: (main) [8069,13162] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] TiApplication: java.lang.NullPointerException [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryReceiver(PlatformModule.java:292) [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.registerBatteryStateReceiver(PlatformModule.java:231) [ERROR] TiApplication: at ti.modules.titanium.platform.PlatformModule.eventListenerAdded(PlatformModule.java:244) [ERROR] TiApplication: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1096) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:136) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5050) [ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) [ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h5.Note: If reduce the number of dummyWindow to 2, it works well, And I can only reproduce it on Samsung Galaxy on Android 4.2.2, it works as expected on Motorola on Android 4.4.2

    Appcelerator JIRA | 2 years ago | Shuo Liang
    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.platform.PlatformModule.registerBatteryReceiver()
    2. ti.modules.titanium
      PlatformModule.eventListenerAdded
      1. ti.modules.titanium.platform.PlatformModule.registerBatteryReceiver(PlatformModule.java:292)
      2. ti.modules.titanium.platform.PlatformModule.registerBatteryStateReceiver(PlatformModule.java:231)
      3. ti.modules.titanium.platform.PlatformModule.eventListenerAdded(PlatformModule.java:244)
      3 frames
    3. org.appcelerator.kroll
      KrollProxy.handleMessage
      1. org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1096)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:98)
      2. android.os.Looper.loop(Looper.java:136)
      3. android.app.ActivityThread.main(ActivityThread.java:5050)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame