java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in org.eclipse.paho.android.service.MqttService$NetworkConnectionIntentReceiver@a81fe87
                                            at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1172)
                                            at android.os.Handler.handleCallback(Handler.java:751)
                                            at android.os.Handler.dispatchMessage(Handler.java:95)
                                            at android.os.Looper.loop(Looper.java:154)
                                            at android.app.ActivityThread.main(ActivityThread.java:6247)
                                            at java.lang.reflect.Method.invoke(Native Method)
                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
                                         Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference
                                            at org.eclipse.paho.client.mqttv3.MqttAsyncClient.stopReconnectCycle(MqttAsyncClient.java:1120)
                                            at org.eclipse.paho.client.mqttv3.MqttAsyncClient.reconnect(MqttAsyncClient.java:1057)
                                            at org.eclipse.paho.android.service.MqttConnection.reconnect(MqttConnection.java:1049)
                                            at org.eclipse.paho.android.service.MqttService.reconnect(MqttService.java:342)
                                            at org.eclipse.paho.android.service.MqttService$NetworkConnectionIntentReceiver.onReceive(MqttService.java:827)
                                            at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1162)
                                            at android.os.Handler.handleCallback(Handler.java:751) 
                                            at android.os.Handler.dispatchMessage(Handler.java:95) 
                                            at android.os.Looper.loop(Looper.java:154) 
                                            at android.app.ActivityThread.main(ActivityThread.java:6247) 
                                            at java.lang.reflect.Method.invoke(Native Method) 
                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872) 
                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)