Detecting cause of RuntimeException: Unable to stop activity

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-05-16T09:29:51Z Indexed on 2010/05/16 9:40 UTC
Read the original article Hit count: 426

I have a really weird error, and I don't know what is causing this. It happens when I leave the Activity.

05-16 12:26:20.360: ERROR/AndroidRuntime(11648): Uncaught handler: thread main exiting due to uncaught exception
05-16 12:26:20.400: ERROR/AndroidRuntime(11648): java.lang.RuntimeException: Unable to stop activity {com.myapk/com.myapk.modules.viewPairing}: java.lang.NullPointerException
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3596)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3674)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread.access$2800(ActivityThread.java:126)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1965)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.os.Looper.loop(Looper.java:123)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread.main(ActivityThread.java:4595)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at java.lang.reflect.Method.invokeNative(Native Method)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at java.lang.reflect.Method.invoke(Method.java:521)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at dalvik.system.NativeStart.main(Native Method)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648): Caused by: java.lang.NullPointerException
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.Activity.performStop(Activity.java:3848)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3591)
05-16 12:26:20.400: ERROR/AndroidRuntime(11648):     ... 11 more

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk-2.1