java.lang.NullPointerException

JIRA | fujunwei | 1 year ago
  1. 0

    Using cordova-plugin-crosswalk-webview 1.3.0, if i install my app on a device, it is working fine, but if i upgrade my previous app which was using 1.2.0, it instantly crash when opening the app. If i delete the data of the app in setting, it doesnt crash anymore. Here is the logcat of the crash: E/AndroidRuntime( 2618): FATAL EXCEPTION: main E/AndroidRuntime( 2618): Process: com.myapp, PID: 2618 E/AndroidRuntime( 2618): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.myapp/com.myapp.MainActivity} : java.lang.NullPointerException E/AndroidRuntime( 2618): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351) E/AndroidRuntime( 2618): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) E/AndroidRuntime( 2618): at android.app.ActivityThread.access$800(ActivityThread.java:151) E/AndroidRuntime( 2618): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334) E/AndroidRuntime( 2618): at android.os.Handler.dispatchMessage(Handler.java:110) E/AndroidRuntime( 2618): at android.os.Looper.loop(Looper.java:193) E/AndroidRuntime( 2618): at android.app.ActivityThread.main(ActivityThread.java:5312) E/AndroidRuntime( 2618): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2618): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 2618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825) E/AndroidRuntime( 2618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641) E/AndroidRuntime( 2618): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2618): Caused by: java.lang.NullPointerException E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169) E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:95) E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.init(PluginManager.java:84) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:116) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:150) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220) E/AndroidRuntime( 2618): at com.myapp.MainActivity.onCreate(MainActivity.java:32) E/AndroidRuntime( 2618): at android.app.Activity.performCreate(Activity.java:5329) E/AndroidRuntime( 2618): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088) E/AndroidRuntime( 2618): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) E/AndroidRuntime( 2618): ... 11 more

    JIRA | 1 year ago | fujunwei
    java.lang.NullPointerException
  2. 0

    Using cordova-plugin-crosswalk-webview 1.3.0, if i install my app on a device, it is working fine, but if i upgrade my previous app which was using 1.2.0, it instantly crash when opening the app. If i delete the data of the app in setting, it doesnt crash anymore. Here is the logcat of the crash: E/AndroidRuntime( 2618): FATAL EXCEPTION: main E/AndroidRuntime( 2618): Process: com.myapp, PID: 2618 E/AndroidRuntime( 2618): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.myapp/com.myapp.MainActivity} : java.lang.NullPointerException E/AndroidRuntime( 2618): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351) E/AndroidRuntime( 2618): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) E/AndroidRuntime( 2618): at android.app.ActivityThread.access$800(ActivityThread.java:151) E/AndroidRuntime( 2618): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334) E/AndroidRuntime( 2618): at android.os.Handler.dispatchMessage(Handler.java:110) E/AndroidRuntime( 2618): at android.os.Looper.loop(Looper.java:193) E/AndroidRuntime( 2618): at android.app.ActivityThread.main(ActivityThread.java:5312) E/AndroidRuntime( 2618): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2618): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 2618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825) E/AndroidRuntime( 2618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641) E/AndroidRuntime( 2618): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2618): Caused by: java.lang.NullPointerException E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169) E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:95) E/AndroidRuntime( 2618): at org.apache.cordova.PluginManager.init(PluginManager.java:84) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:116) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:150) E/AndroidRuntime( 2618): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220) E/AndroidRuntime( 2618): at com.myapp.MainActivity.onCreate(MainActivity.java:32) E/AndroidRuntime( 2618): at android.app.Activity.performCreate(Activity.java:5329) E/AndroidRuntime( 2618): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088) E/AndroidRuntime( 2618): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) E/AndroidRuntime( 2618): ... 11 more

    JIRA | 1 year ago | fujunwei
    java.lang.NullPointerException
  3. 0

    Cordova 3, Unable to start activity

    Stack Overflow | 3 years ago | Thomas Hambach
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fourgamers.reader/com.fourgamers.reader.FourGamers}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ionic Framework start error on Android

    Stack Overflow | 2 years ago | chemitaxis
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ionicframework.congressapp251163/com.ionicframework.congressapp251163.CordovaApp}: java.lang.NullPointerException
  6. 0

    Can't get cordova.file plugin to work in a hybrid app

    Stack Overflow | 2 years ago | Shalom Aleichem
    java.lang.NullPointerException

    3 unregistered visitors
    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.PluginManager.getPlugin()
    2. org.apache.cordova
      CordovaActivity.loadUrl
      1. org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169)
      2. org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:95)
      3. org.apache.cordova.PluginManager.init(PluginManager.java:84)
      4. org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:116)
      5. org.apache.cordova.CordovaActivity.init(CordovaActivity.java:150)
      6. org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220)
      6 frames
    3. com.myapp
      MainActivity.onCreate
      1. com.myapp.MainActivity.onCreate(MainActivity.java:32)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5329)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
      5. android.app.ActivityThread.access$800(ActivityThread.java:151)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334)
      7. android.os.Handler.dispatchMessage(Handler.java:110)
      8. android.os.Looper.loop(Looper.java:193)
      9. android.app.ActivityThread.main(ActivityThread.java:5312)
      9 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:825)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame