Merge "Check nullity of ResultReceiver" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0f7813ec5e
@@ -469,7 +469,9 @@ public class MediaSession2 implements AutoCloseable {
|
||||
}
|
||||
mCallbackExecutor.execute(() -> {
|
||||
if (!controllerInfo.removeRequestedCommandSeqNumber(seq)) {
|
||||
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