java.lang.RuntimeException

Unable to stop activity: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference


Solutions on the web46101

Solution icon of stackoverflow
Unable to stop activity: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference

Solution icon of github
via GitHub by detobel36
, 4 months ago
Unable to stop activity {be.ulb.owl/be.ulb.owl.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Thread.interrupt()' on a null object reference

Solution icon of github
Unable to stop activity {com.xxxx.xxx/com.github.moduth.blockcanary.ui.DisplayBlockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.internal.view.menu.MenuBuilder.close()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by faisal1208
, 5 months ago
Unable to stop activity {com.example.accurat.myapp/com.example.accurat.myapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.disconnect()' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{.../...app.IntroActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.FrameLayout.addView(android.view.View)' on a null object reference

Solution icon of github
via GitHub by jasminb
, 1 year ago
Unable to stop service au.com.bluedot.point.net.engine.BlueDotPointService@df400ef: java.lang.NullPointerException: Attempt to invoke virtual method 'void au.com.bluedot.point.net.engine.j.d()' on a null object reference

Solution icon of github
Unable to stop service org.fraunhofer.cese.madcap.services.DataCollectionService@5c7ef3a: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.NotificationManager.cancel(int)' on a null object reference

Solution icon of github
Unable to stop service com.eveningoutpost.dexdrip.Services.DexCollectionService@2f3d66e8: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.speech.tts.TextToSpeech.shutdown()' on a null object reference

Solution icon of web
Unable to stop service com.bustracker.TrackingService@1e57ec95: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.location.LocationManager.removeUpdates(android.location.LocationListener)' on a null object reference

Stack trace

  • java.lang.RuntimeException: Unable to stop activity: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4710) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4774) at android.app.ActivityThread.access$1400(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1824) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4937) at android.view.ViewGroup.removeViewAt(ViewGroup.java:4899) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1535) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1585) at android.support.v4.app.FragmentManagerImpl.dispatchStop(FragmentManager.java:2855) at android.support.v4.app.FragmentController.dispatchStop(FragmentController.java:245) at android.support.v4.app.FragmentActivity.onStop(FragmentActivity.java:627) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1306) at android.app.Activity.performStop(Activity.java:7070) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4707) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4774) at android.app.ActivityThread.access$1400(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1824) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago