Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7eb7c3e4 authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am 90a01e6b: am ab455da3: Merge "handle NullPointerException in cases where a...

am 90a01e6b: am ab455da3: Merge "handle NullPointerException in cases where a proxy call to AdapterService is called after Adapter Service is stopped." into jb-mr1-dev

* commit '90a01e6b':
  handle NullPointerException in cases where a proxy call to AdapterService is called after Adapter Service is stopped.
parents 21e8f7ae 90a01e6b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -786,6 +786,12 @@ public final class BluetoothDevice implements Parcelable {
        try {
            return sService.getBondState(this);
        } catch (RemoteException e) {Log.e(TAG, "", e);}
        catch (NullPointerException npe) {
            // Handle case where bluetooth service proxy
            // is already null.
            Log.e(TAG, "NullPointerException for getBondState() of device ("+
                getAddress()+")", npe);
        }
        return BOND_NONE;
    }