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 Devansh
, 1 year ago
Unable to pause activity {com.music.track/com.music.track.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.media.MediaPlayer.isPlaying()' on a null object reference
via Stack Overflow by tomhogenkamp
, 10 months ago
Unable to pause activity {com.tomhogenkamp.NeonDiscoLight/com.tomhogenkamp.NeonDiscoLight.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.tomhogenkamp.NeonDiscoLight.MyPreferences.getBoolPreferences(java.lang.String, boolean)' on a null object reference
via GitHub by kennethlynne
, 1 year ago
Unable to pause activity {com.edtechfoundry.differ/com.edtechfoundry.differ.MainActivity}: java.lang.IllegalStateException
via GitHub by ecgreb
, 1 year ago
Unable to pause activity {com.mapzen.erasermap/com.mapzen.erasermap.controller.MainActivity}: java.lang.IllegalArgumentException: Service not registered: com.mapzen.android.lost.internal.FusedLocationProviderApiImpl$2@c390cb5
via Coderanch by L Vasquez, 1 year ago
Unable to pause activity {my.package.myapplication/my.package.myapplication.Person1Screen}: java.lang.RuntimeException: writeValueXml: unable to write value content://com.android.providers.media.documents/document/image%3A49684
via Stack Overflow by ImagineThat
, 1 year ago
Unable to pause activity {my.package.myapplication/my.package.myapplication.Person1Screen}: java.lang.RuntimeException: writeValueXml: unable to write value content://com.android.providers.media.documents/document/image%3A49684
java.lang.RuntimeException: Unable to pause activity {com.music.track/com.music.track.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.media.MediaPlayer.isPlaying()' on a null object reference at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3454) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3408) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3383) at android.app.ActivityThread.access$1100(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5497) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.media.MediaPlayer.isPlaying()' on a null object reference at com.music.track.MainActivity.onPause(MainActivity.java:186) at android.app.Activity.performPause(Activity.java:6397) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1380) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3435)