Null-check argument to ConnectivityManager.releaseNetworkRequest(PendingIntent)

Do this in ConnectivityService to prevent crashing framework.

Bug:21329396
Change-Id: Ifd9c970cd0da392d0bd5da9a9ae845fdf0b559b3
This commit is contained in:
Paul Jensen
2015-05-21 08:15:08 -04:00
parent 1916861976
commit 6f94248ebf

View File

@@ -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));
}