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

Commit bb478d9b authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Fixed NPE when cancellation signal is null." into oc-mr1-dev am: fac2141f

am: baceef99

Change-Id: I832470431fcc804f4a2d6bf0ec8433ba1f59b621
parents 33515a25 baceef99
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -562,7 +562,10 @@ final class RemoteFillService implements DeathRecipient {
        void onTimeout(RemoteFillService remoteService) {
            // NOTE: Must make these 2 calls asynchronously, because the cancellation signal is
            // 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);
        }