We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0590c1b + 305f240 commit ab455daCopy full SHA for ab455da
core/java/android/bluetooth/BluetoothDevice.java
@@ -786,6 +786,12 @@ public int getBondState() {
786
try {
787
return sService.getBondState(this);
788
} catch (RemoteException e) {Log.e(TAG, "", e);}
789
+ catch (NullPointerException npe) {
790
+ // Handle case where bluetooth service proxy
791
+ // is already null.
792
+ Log.e(TAG, "NullPointerException for getBondState() of device ("+
793
+ getAddress()+")", npe);
794
+ }
795
return BOND_NONE;
796
}
797
0 commit comments