Android 13 Crash
See original GitHub issueWhen I start ranging for Bluetooth devices using the altbeacon library I get the following crash.
java.lang.RuntimeException: Unable to create service org.altbeacon.beacon.service.BeaconService: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at android.app.ActivityThread.handleCreateService(ActivityThread.java:4524) at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2153) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7850) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
It happens on all Android devices I have tested that are running Android 13. The altbeacon library version is 2.19.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
@davidgyoung I think this is the same stack trace. The stack posted by @tonynguyen0523 is the cause of the
RuntimeException
posted by @DarrenMiddleton. I personally have the exact same stack trace on crashlytics.OK, thanks for the confirmation, @FabienWitick. I will merge this in and it will be included in the next non-beta release as well.