question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The app started to crash after we started using BluetoothMedic tests

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davidgyoungcommented, Jun 6, 2018

#675 merged into master and released as 2.14

0reactions
davidgyoungcommented, Apr 26, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found