java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in org.apache.cordova.networkinformation.NetworkManager$1@41ea6600

Apache's JIRA Issue Tracker | Ian Clelland | 2 years ago
  1. 0

    Working on the App harness, I've found that the application will crash immediately if there is no network available (No 3G, no Wi-Fi) at startup time. From the Android docs, {{NetworkManager.getActiveNetworkInfo}} "Returns a NetworkInfo object for the current default network or null if no network default network is currently active" [http://developer.android.com/reference/android/net/ConnectivityManager.html#getActiveNetworkInfo()] This results in an NPE at NetworkManager.java:201. {code:title=Stack trace} E/AndroidRuntime(31166): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in org.apache.cordova.networkinformation.NetworkManager$1@41ea6600 E/AndroidRuntime(31166): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:769) E/AndroidRuntime(31166): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime(31166): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(31166): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime(31166): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime(31166): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(31166): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(31166): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime(31166): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime(31166): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(31166): Caused by: java.lang.NullPointerException E/AndroidRuntime(31166): at org.apache.cordova.networkinformation.NetworkManager.getConnectionInfo(NetworkManager.java:201) E/AndroidRuntime(31166): at org.apache.cordova.networkinformation.NetworkManager.updateConnectionInfo(NetworkManager.java:171) E/AndroidRuntime(31166): at org.apache.cordova.networkinformation.NetworkManager.access$000(NetworkManager.java:38) E/AndroidRuntime(31166): at org.apache.cordova.networkinformation.NetworkManager$1.onReceive(NetworkManager.java:110) E/AndroidRuntime(31166): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:759) E/AndroidRuntime(31166): ... 9 more {code}

    Apache's JIRA Issue Tracker | 2 years ago | Ian Clelland
    java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in org.apache.cordova.networkinformation.NetworkManager$1@41ea6600
  2. 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
  3. 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 org.apache.cordova.networkinformation.NetworkManager.getConnectionInfo()
    2. org.apache.cordova
      NetworkManager$1.onReceive
      1. org.apache.cordova.networkinformation.NetworkManager.getConnectionInfo(NetworkManager.java:201)
      2. org.apache.cordova.networkinformation.NetworkManager.updateConnectionInfo(NetworkManager.java:171)
      3. org.apache.cordova.networkinformation.NetworkManager.access$000(NetworkManager.java:38)
      4. org.apache.cordova.networkinformation.NetworkManager$1.onReceive(NetworkManager.java:110)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:759)
      2. android.os.Handler.handleCallback(Handler.java:733)
      3. android.os.Handler.dispatchMessage(Handler.java:95)
      4. android.os.Looper.loop(Looper.java:136)
      5. android.app.ActivityThread.main(ActivityThread.java:5001)
      5 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame