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

Commit 2c348b56 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

AvrcpController dumpsys error

AvrcpController would throw a null pointer exception if it wasn't
connected when generating a dumpsys.

Bug: 112721301
Test: Turn on Bluetooth, don't connect, dumpsys
Change-Id: Ife707d8094b722eb1b95165504b07ee19fe71fee
parent 83bc522a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -729,6 +729,7 @@ class AvrcpControllerStateMachine extends StateMachine {
    }

    void dump(StringBuilder sb) {
        if (mRemoteDevice == null) return;
        BluetoothDevice device = mRemoteDevice.mBTDevice;
        if (device == null) return;
        ProfileService.println(sb, "mCurrentDevice: " + device.getAddress() + "("