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

Commit 5bc04982 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Add a missing null pointer check inside AvrcpTargetService.dump()" am: 018f17fb

am: b93a757a

Change-Id: I1d324c931c7938c9252dad859ad30940a3d52a38
parents a1c3a8f7 b93a757a
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -273,7 +273,11 @@ public class AvrcpTargetService extends ProfileService {
     * Dump debugging information to the string builder
     * Dump debugging information to the string builder
     */
     */
    public void dump(StringBuilder sb) {
    public void dump(StringBuilder sb) {
        if (mMediaPlayerList != null) {
            mMediaPlayerList.dump(sb);
            mMediaPlayerList.dump(sb);
        } else {
            sb.append("\nMedia Player List is empty\n");
        }
    }
    }


    private static class AvrcpTargetBinder extends IBluetoothAvrcpTarget.Stub
    private static class AvrcpTargetBinder extends IBluetoothAvrcpTarget.Stub