java.lang.RuntimeException: Unable to pause activity {temperatureconverter.android.vogella.com.prefsfromandroiddev/temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity}: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Tmmccon
, 1 year ago
Unable to pause activity {temperatureconverter.android.vogella.com.prefsfromandroiddev/temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity}: java.lang.NullPointerException
via GitHub by iheanyi
, 2 years ago
Unable to pause activity {com.iheanyiekechukwu.tubalr/com.iheanyiekechukwu.tubalr.PlaylistActivity}: java.lang.NullPointerException
via Stack Overflow by user3001046
, 2 years ago
Unable to pause activity {com.example.imagecapture/com.example.imagecapture.MainActivity}: java.lang.NullPointerException
via Stack Overflow by Junmo Lee
, 1 year ago
Unable to pause activity {com.idk.whatsthepass/com.idk.whatsthepass.CoinClicker}: java.lang.NullPointerException
via GitHub by bdipak
, 1 year ago
Unable to pause activity {XXXActivity}: com.amazonaws.mobileconnectors.amazonmobileanalytics.internal.delivery.EventStoreException: Unable to open session file writer
via Stack Overflow by user2738443
, 2 years ago
Unable to pause activity {com.example.imagecapture/com.example.imagecapture.MainActivity}: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.EditText
java.lang.RuntimeException: Unable to pause activity {temperatureconverter.android.vogella.com.prefsfromandroiddev/temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity}: java.lang.NullPointerException
at temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity.onPause(MainActivity.java:38)
at android.app.Activity.performPause(Activity.java:5286)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1240)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2889)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2858)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2836)
at android.app.ActivityThread.access$900(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.