Fix NPE in MediaController2

Test: build
Change-Id: Ibd48b1515afe639f58fd20198b67e828b2c20106
This commit is contained in:
Sungsoo Lim
2019-02-18 11:58:49 +09:00
parent a524400e31
commit 719b05d7eb

View File

@@ -317,7 +317,9 @@ public class MediaController2 implements AutoCloseable {
isCanceled = !mRequestedCommandSeqNumbers.remove(seq);
}
if (isCanceled) {
resultReceiver.send(RESULT_INFO_SKIPPED, null);
if (resultReceiver != null) {
resultReceiver.send(RESULT_INFO_SKIPPED, null);
}
return;
}
Session2Command.Result result = mCallback.onSessionCommand(