java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by fujunwei,
  • 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
    via by fujunwei,
  • Cordova 3, Unable to start activity
    via Stack Overflow by Thomas Hambach
    ,
  • Ionic Framework start error on Android
    via Stack Overflow by chemitaxis
    ,
  • Cordova CLI 4.3.0 load URL crash on Android
    via Stack Overflow by Ritika
    ,
  • Ionic app crashes on Android emulator and device
    via by Unknown author,
    • java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5312) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169) at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:95) at org.apache.cordova.PluginManager.init(PluginManager.java:84) at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:116) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:150) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220) at com.myapp.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:5329) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) ... 11 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,