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

Commit 6517b37f authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

AvrcpController null pointer exceptions.

Cleanup code that could cause null pointer exceptions.

Bug: 117470250
Test: runtest bluetooth
Change-Id: I35c3ca3df5c71748a799f863659ccc9b2465b4bb
parent 10ddabe9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -674,7 +674,7 @@ public class A2dpSinkStateMachine extends StateMachine {
            }

            if (currentState == mConnected) {
                if (mCurrentDevice.equals(device)) {
                if (mCurrentDevice != null && mCurrentDevice.equals(device)) {
                    return BluetoothProfile.STATE_CONNECTED;
                }
                return BluetoothProfile.STATE_DISCONNECTED;