eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.14k stars 887 forks source link

NPE in ClientState.quiesce (ivar pendingMessages is null) #932

Open eehouse opened 2 years ago

eehouse commented 2 years ago

I recently upgraded to 1.2.5 (from 1.1.x) in my Android app and am seeing a significant number (maybe 30% of users who are actually creating mqtt traffic) of the following crash report:

java.lang.NullPointerException: at org.eclipse.paho.client.mqttv3.internal.ClientState.quiesce (ClientState.java:1369) at org.eclipse.paho.client.mqttv3.internal.ClientComms$DisconnectBG.run (ClientComms.java:777) at java.lang.Thread.run (Thread.java:920)