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

Commit 2d12628e authored by Jin Seok Park's avatar Jin Seok Park
Browse files

Check nullity of ResultReceiver

Bug: 182164496
Test: N/A
Change-Id: I96bdef1c79f8f91d33d6a6a734bc94e162a5ea33
parent 7f40eec8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -469,7 +469,9 @@ public class MediaSession2 implements AutoCloseable {
        }
        mCallbackExecutor.execute(() -> {
            if (!controllerInfo.removeRequestedCommandSeqNumber(seq)) {
                if (resultReceiver != null) {
                    resultReceiver.send(RESULT_INFO_SKIPPED, null);
                }
                return;
            }
            Session2Command.Result result = mCallback.onSessionCommand(