Fix NPE crash when no bluetooth is available

Fixes #6355
Closes #6366
fork-5.53.8
mcloo 2017-03-12 02:23:40 +01:00 zatwierdzone przez Moxie Marlinspike
rodzic 97c3e8fa3f
commit 9d13b9437c
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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) {