Hi James,
Thanks for the prompt response also there are couple of errors that I have found while using the Mqtt on Android,
One such instance is crashing the app stacktrace is below, this report is from one of our client's tester.
02-16 19:23:13.114 5925 5925 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'org.eclipse.paho.android.service.m org.eclipse.paho.android.service.MqttService.a(java.lang.String)' on a null object reference
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at co.haptik.sdk.mqtt.MqttSDKConnection$1.propertyChange(SourceFile:2485)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at co.haptik.sdk.mqtt.Connection.notifyListeners(SourceFile:99)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at co.haptik.sdk.mqtt.Connection.addAction(SourceFile:94)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at co.haptik.sdk.mqtt.ActionListener.connect(SourceFile:63)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at co.haptik.sdk.mqtt.ActionListener.onSuccess(SourceFile:43)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at org.eclipse.paho.android.service.u.a(SourceFile:124)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at org.eclipse.paho.android.service.MqttAndroidClient.a(SourceFile:1485)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at org.eclipse.paho.android.service.MqttAndroidClient.onReceive(SourceFile:2440)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at android.support.v4.content.i.a(SourceFile:1297)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at android.support.v4.content.j.handleMessage(SourceFile:116)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at android.os.Looper.loop(Looper.java:145)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5944)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
02-16 19:23:13.114 5925 5925 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
I hope you can tell me what am I doing wrong or should I just handle the try catch here.
Thanks.