paho.mqtt.android icon indicating copy to clipboard operation
paho.mqtt.android copied to clipboard

java.lang.NullPointerException: Attempt to invoke virtual method 'long org.eclipse.paho.client.mqttv3.internal.ClientState.getKeepAlive()' on a null object reference

Open BarretWu opened this issue 4 years ago • 2 comments

Please fill out the form below before submitting, thank you!

  • [x] Bug exists Release Version 1.2.5 (Java Repository Master Branch)

java.lang.NullPointerException: Attempt to invoke virtual method 'long org.eclipse.paho.client.mqttv3.internal.ClientState.getKeepAlive()' on a null object reference at org.eclipse.paho.client.mqttv3.internal.ClientComms.getKeepAlive(ClientComms.java:654) at org.eclipse.paho.android.service.AlarmPingSender.start(AlarmPingSender.java:79) at org.eclipse.paho.client.mqttv3.internal.ClientState.connected(ClientState.java:1201) at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:1037) at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:150) at java.lang.Thread.run(Thread.java:764)

Description of Bug:

E.g. Steps to re-create, how often does this happen etc..

Console Log output (if available):

BarretWu avatar Aug 17 '20 06:08 BarretWu

Same error happened to me with current version

drachim-dev avatar Dec 20 '21 10:12 drachim-dev

The same error happened to me on the version 3.6.0-beta1

Basitshaabaz avatar Jan 09 '23 13:01 Basitshaabaz