Fix NPE in MediaController2
Test: build Change-Id: Ibd48b1515afe639f58fd20198b67e828b2c20106
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user