[BUG] MetaWearBleService
Hi,
the MetaWearBleService.java file have a lot of bugs.
My configurator is:
Metawar with coin vibrator
Nexus 5 with Android L Developer preview.
After tried to test the accelerometer i have encountered this bug:
09-06 15:09:06.266: E/AndroidRuntime(27913): FATAL EXCEPTION: main
09-06 15:09:06.266: E/AndroidRuntime(27913): Process: com.mbientlab.metawear.app, PID: 27913
09-06 15:09:06.266: E/AndroidRuntime(27913): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.mbientlab.com.metawear.api.MetaWearBleService.Action.NOTIFICATION_RECEIVED flg=0x10 (has extras) } in com.mbientlab.metawear.api.MetaWearBleService$3@3b74770d
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:870)
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.os.Handler.handleCallback(Handler.java:738)
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.os.Handler.dispatchMessage(Handler.java:95)
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.os.Looper.loop(Looper.java:135)
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.app.ActivityThread.main(ActivityThread.java:5070)
09-06 15:09:06.266: E/AndroidRuntime(27913): at java.lang.reflect.Method.invoke(Native Method)
09-06 15:09:06.266: E/AndroidRuntime(27913): at java.lang.reflect.Method.invoke(Method.java:372)
09-06 15:09:06.266: E/AndroidRuntime(27913): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
09-06 15:09:06.266: E/AndroidRuntime(27913): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
09-06 15:09:06.266: E/AndroidRuntime(27913): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.Collection.iterator()' on a null object reference
09-06 15:09:06.266: E/AndroidRuntime(27913): at com.mbientlab.metawear.api.controller.Accelerometer$Register$4.notifyCallbacks(Accelerometer.java:74)
09-06 15:09:06.266: E/AndroidRuntime(27913): at com.mbientlab.metawear.api.MetaWearBleService$3.onReceive(MetaWearBleService.java:158)
09-06 15:09:06.266: E/AndroidRuntime(27913): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:860)
09-06 15:09:06.266: E/AndroidRuntime(27913): ... 8 more
This discussion has been closed.
Comments