Merge "Fixed NPE when cancellation signal is null." into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fac2141f4e
@@ -562,7 +562,10 @@ final class RemoteFillService implements DeathRecipient {
|
|||||||
void onTimeout(RemoteFillService remoteService) {
|
void onTimeout(RemoteFillService remoteService) {
|
||||||
// NOTE: Must make these 2 calls asynchronously, because the cancellation signal is
|
// NOTE: Must make these 2 calls asynchronously, because the cancellation signal is
|
||||||
// handled by the service, which could block.
|
// handled by the service, which could block.
|
||||||
remoteService.dispatchOnFillTimeout(mCancellation);
|
final ICancellationSignal cancellation = mCancellation;
|
||||||
|
if (cancellation != null) {
|
||||||
|
remoteService.dispatchOnFillTimeout(cancellation);
|
||||||
|
}
|
||||||
remoteService.dispatchOnFillRequestFailure(PendingFillRequest.this, null);
|
remoteService.dispatchOnFillRequestFailure(PendingFillRequest.this, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user