Unable to connect after unexpected application closure
Hi there,
to shortly summarize the setup for a bug I encountered:
- I started streaming accelerometer, gyroscope and magnetometer readings from a MetaMotion R in an Android App
- My app force closed on account of an unrelated error, so that I was not able to disable and stop the different modules and to disconnect from the board
- Upon trying to restart my app, I get the following exception, when I call mboard.connect()
E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.kinemic.metawearhandler, PID: 24150
java.lang.NullPointerException: Attempt to invoke interface method
'void com.mbientlab.metawear.RouteManager$MessageHandler.process(com.mbientlab.metawear.Message)' on a null object reference
at com.mbientlab.metawear.impl.DefaultMetaWearBoard$45$1.run(DefaultMetaWearBoard.java:3964)
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:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
This discussion has been closed.
Comments