KomodoOpenLab / tagin

tagin! is an open source, location tagging engine that may be used to create indoor location-based services (LBS) and applications.
http://wiki.mobile-accessibility.idrc.ocad.ca/w/Tagin!
4 stars 4 forks source link

Demo App: crash after requesting fingerprints.list() #14

Closed ijdoc closed 11 years ago

ijdoc commented 11 years ago

Activity ran properly but crashed after pressing the fingerprints.list() button. No other button was pressed before expect the Menu > Settings, which did not seem to do anything.

Trace:

07-15 16:18:31.177: E/AndroidRuntime(21168): FATAL EXCEPTION: main
07-15 16:18:31.177: E/AndroidRuntime(21168): java.lang.RuntimeException: Error receiving broadcast Intent { act=ca.idrc.tagin.lib.ACTION_FINGERPRINTS_READY flg=0x10 (has extras) } in ca.idrc.tagin.app.LauncherActivity$1@4147c550
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.os.Handler.handleCallback(Handler.java:725)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.os.Handler.dispatchMessage(Handler.java:92)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.os.Looper.loop(Looper.java:137)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.app.ActivityThread.main(ActivityThread.java:5041)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at java.lang.reflect.Method.invokeNative(Native Method)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at java.lang.reflect.Method.invoke(Method.java:511)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at dalvik.system.NativeStart.main(Native Method)
07-15 16:18:31.177: E/AndroidRuntime(21168): Caused by: java.lang.NullPointerException
07-15 16:18:31.177: E/AndroidRuntime(21168):    at ca.idrc.tagin.app.LauncherActivity$1.onReceive(LauncherActivity.java:97)
07-15 16:18:31.177: E/AndroidRuntime(21168):    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:758)
07-15 16:18:31.177: E/AndroidRuntime(21168):    ... 9 more
ijdoc commented 11 years ago

@elyas-bhy seems to be related to the fact that the cloud service may have returned an empty list to start with since subsequent calls after requesting a URN do not crash the app.

Feel free to close this issue in favour of a more accurately described one.