Fix NPE crash when no bluetooth is available

Fixes #6355
Closes #6366
pull/1/head
mcloo 9 years ago committed by Moxie Marlinspike
parent 97c3e8fa3f
commit 9d13b9437c

@ -49,6 +49,9 @@ public class BluetoothStateManager {
this.bluetoothConnectionReceiver = new BluetoothConnectionReceiver();
this.listener = listener;
if (this.bluetoothAdapter == null)
return;
requestHeadsetProxyProfile();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {

Loading…
Cancel
Save