Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10647

Battery Plugin crash on Android

    XMLWordPrintableJSON

    Details

      Description

      Build: https://ci.apache.org/builders/cordova-android-win/builds/1644
      Output: https://ci.apache.org/builders/cordova-android-win/builds/1644/steps/running-tests/logs/stdio
      Error:

      E/AndroidRuntime( 1151): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } in org.apache.cordova.batterystatus.BatteryListener$1@b22f95d0
      E/AndroidRuntime( 1151):    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:769)
      E/AndroidRuntime( 1151):    at android.os.Handler.handleCallback(Handler.java:733)
      E/AndroidRuntime( 1151):    at android.os.Handler.dispatchMessage(Handler.java:95)
      E/AndroidRuntime( 1151):    at android.os.Looper.loop(Looper.java:136)
      E/AndroidRuntime( 1151):    at android.app.ActivityThread.main(ActivityThread.java:5001)
      E/AndroidRuntime( 1151):    at java.lang.reflect.Method.invokeNative(Native Method)
      E/AndroidRuntime( 1151):    at java.lang.reflect.Method.invoke(Method.java:515)
      E/AndroidRuntime( 1151):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      E/AndroidRuntime( 1151):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      E/AndroidRuntime( 1151):    at dalvik.system.NativeStart.main(Native Method)
      E/AndroidRuntime( 1151): Caused by: java.lang.NullPointerException
      E/AndroidRuntime( 1151):    at org.apache.cordova.batterystatus.BatteryListener.sendUpdate(BatteryListener.java:160)
      E/AndroidRuntime( 1151):    at org.apache.cordova.batterystatus.BatteryListener.updateBatteryInfo(BatteryListener.java:148)
      E/AndroidRuntime( 1151):    at org.apache.cordova.batterystatus.BatteryListener.access$000(BatteryListener.java:34)
      E/AndroidRuntime( 1151):    at org.apache.cordova.batterystatus.BatteryListener$1.onReceive(BatteryListener.java:72)
      E/AndroidRuntime( 1151):    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:759)
      E/AndroidRuntime( 1151):    ... 9 more
      W/ActivityManager(  372):   Force finishing activity org.apache.mobilespec/.MainActivity
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dblotsky Dmitry Blotsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified