The app started to crash after we started using BluetoothMedic tests
See original GitHub issueExpected behavior
Does not crash
Actual behavior
The app is crashing with the following stacktrace:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.bluetooth.IBluetooth.isMultiAdvertisementSupported()' on a null object reference
at android.bluetooth.BluetoothAdapter.isMultipleAdvertisementSupported(BluetoothAdapter.java:1201)
at android.bluetooth.BluetoothAdapter.getBluetoothLeAdvertiser(BluetoothAdapter.java:631)
at org.altbeacon.bluetooth.BluetoothMedic.runTransmitterTest(Unknown Source)
at org.altbeacon.bluetooth.BluetoothTestJob$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
Steps to reproduce this behavior
Unknown
Mobile device model and OS version
According to Crashlytics, 100% of crashes (on our app) happened on Samsung Galaxy S4, running Android 5.0.1
Android Beacon Library version
2.13.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
altbeacon BluetoothMedic crashes with Android version 12 + 13
4: I can run this on a test phone with Android 12, that is not a Samsung, and it works fine. If I...
Read more >Bluetooth headphones crashing apps - Apple Community
They connect fine, however when playing anything through YouTube or Apple Music, the apps hang on opening, Freeze and ultimately crash. Tested ......
Read more >Bluetooth sync crashes the Android app - Withings | Support
Just before the app crashes, a notification is created: "Health Mate is ready to receive data over Bluetooth". Now the app crashes as...
Read more >org.altbeacon.beacon.logging.LogManager java code examples
Best Java code snippets using org.altbeacon.beacon.logging. ... TAG, "Transmitter test failed in a way we consider a test failure"); BluetoothMedic.this.
Read more >AltBeacon - Bountysource
Created 2 years ago in AltBeacon/android-beacon-library with 0 comments. Expected behavior. Background location permission was not given so when I put the app...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#675 merged into master and released as 2.14
@agap, I have a proposed fix in #675, but I cannot verify that it works without a reproducible test case.
Would you be willing to try it out in an app update to see if it eliminates these crashes? If so, I will roll you an ad hoc binary release with instructions on using it with your app.