java.lang.RuntimeException

Unable to stop activity {com.waynell.videolist.demo/com.waynell.videolist.demo.activity.MainActivity}: java.lang.NullPointerException

Solutions on the web37750

  • via Stack Overflow by Shikha Ratra
    , 10 months ago
    Unable to stop activity {com.waynell.videolist.demo/com.waynell.videolist.demo.activity.MainActivity}: java.lang.NullPointerException
  • via GitHub by ZWinner
    , 8 months ago
    Unable to stop activity : java.lang.NullPointerException
  • Stack trace

    • java.lang.RuntimeException: Unable to stop activity {com.waynell.videolist.demo/com.waynell.videolist.demo.activity.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3487) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3541) at android.app.ActivityThread.access$1400(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5045) 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:794) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.waynell.videolist.demo.activity.MainActivity.onStop(MainActivity.java:325) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1212) at android.app.Activity.performStop(Activity.java:5376) at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3482)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.