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

Commit 1a81c39a authored by Paul Jensen's avatar Paul Jensen
Browse files

Null-check argument to ConnectivityManager.releaseNetworkRequest(PendingIntent)

Do this in ConnectivityService to prevent crashing framework.

Bug:21329396
Change-Id: Ifd9c970cd0da392d0bd5da9a9ae845fdf0b559b3
parent c1a9436d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3640,6 +3640,7 @@ public class ConnectivityService extends IConnectivityManager.Stub

    @Override
    public void releasePendingNetworkRequest(PendingIntent operation) {
        checkNotNull(operation, "PendingIntent cannot be null.");
        mHandler.sendMessage(mHandler.obtainMessage(EVENT_RELEASE_NETWORK_REQUEST_WITH_INTENT,
                getCallingUid(), 0, operation));
    }