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 web151

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 web
Unable to stop activity {georg.com.thermal_camera_plus/georg.com.thermal_camera.MainActivity}: java.lang.IllegalArgumentException: Receiver not registered: com.flir.flironesdk.Device$1@8aef6b6

Solution icon of github
via GitHub by detobel36
, 6 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 web
Unable to stop activity {com.rbcai.nymiauth/com.rbcai.nymiauth.Nymi}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.bluetooth.BluetoothGatt.disconnect()' on a null object reference

Solution icon of github
via GitHub by karambar
, 1 year ago
Unable to stop activity {fr.chauffeurprive.preprod/fr.chauffeurprive.presentation.order.view.OrderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.instabug.library.internal.e.a.d.b()' on a null object reference

Solution icon of github
via GitHub by beaucollins
, 10 months ago
Unable to stop activity {com.android.quicksearchbox/com.android.quicksearchbox.SearchActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.android.quicksearchbox.SourceResult com.android.quicksearchbox.Suggestions.getResult()' on a null object reference

Solution icon of github
Unable to stop activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void org.eclipse.paho.client.mqttv3.IMqttToken.setActionCallback(org.eclipse.paho.client.mqttv3.IMqttActionListener)' on a null object reference

Solution icon of stackoverflow
Unable to stop activity {com.realer.android/com.realer.android.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.modules.core.DeviceEventManagerModule$RCTDeviceEventEmitter.emit(java.lang.String, java.lang.Object)' on a null object reference

Solution icon of github
Unable to stop activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void org.eclipse.paho.client.mqttv3.IMqttToken.setActionCallback(org.eclipse.paho.client.mqttv3.IMqttActionListener)' 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