java.lang.RuntimeException: 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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by dmsherazi
, 1 year ago
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
via GitHub by dmsherazi
, 1 year ago
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
via GitHub by detobel36
, 7 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
via nymi.com by Unknown author, 1 year ago
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
via GitHub by beaucollins
, 11 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
via GitHub by semenoh
, 2 years ago
Unable to stop activity {com.hackvg.android/com.hackvg.android.views.activities.MoviesActivity}: java.lang.IllegalArgumentException: Missing event handler for an annotated method. Is class com.hackvg.android.mvp.presenters.PopularShowsPresenterImpl registered?
java.lang.RuntimeException: 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
at net.kindows.chitchat.LoginActivity.onStop(LoginActivity.java:178)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1261)
at android.app.Activity.performStop(Activity.java:6113)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3399)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3453)
at android.app.ActivityThread.access$1100(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5311)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)

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.

Write tip

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