KomodoOpenLab / tecla-framework

This repo is now deprecated, please move on to https://github.com/idrc/tecla-hud
http://komodoopenlab.com/tecla/
2 stars 9 forks source link

Null pointer exception after Shield connected #390

Closed ijdoc closed 11 years ago

ijdoc commented 11 years ago

Steps to recreate:

  1. Make sure bluetooth is OFF and the Shield has not yet been paired
  2. Make sure there is a Tecla Shield DOS in range
  3. Open the Tecla Next settings and select "Connect to Shield"
  4. Wait for the 'turn on bluetooth' and 'pair' requests and accept both.
  5. After the pair request is accepted, * The Shield connects, * The Shield connected notification comes up * The HUD shows up * The app crashes

Trace:

10-03 18:19:40.763: E/AndroidRuntime(18739): FATAL EXCEPTION: main
10-03 18:19:40.763: E/AndroidRuntime(18739): java.lang.RuntimeException: Unable to start service com.android.tecla.addon.TeclaShieldService@41e656a8 with null: java.lang.NullPointerException
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2721)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.app.ActivityThread.access$1900(ActivityThread.java:141)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.os.Handler.dispatchMessage(Handler.java:99)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.os.Looper.loop(Looper.java:137)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.app.ActivityThread.main(ActivityThread.java:5103)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at java.lang.reflect.Method.invokeNative(Native Method)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at java.lang.reflect.Method.invoke(Method.java:525)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at dalvik.system.NativeStart.main(Native Method)
10-03 18:19:40.763: E/AndroidRuntime(18739): Caused by: java.lang.NullPointerException
10-03 18:19:40.763: E/AndroidRuntime(18739):    at com.android.tecla.addon.TeclaShieldService.onStartCommand(TeclaShieldService.java:135)
10-03 18:19:40.763: E/AndroidRuntime(18739):    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
10-03 18:19:40.763: E/AndroidRuntime(18739):    ... 10 more
k22mak commented 11 years ago

Issue appears to be fixed.