am a8a448da: am e568672c: Merge "Fix NPE in ConnectivityService" into klp-dev
* commit 'a8a448da25c62f54cac3318c17c69e851a4ecde9': Fix NPE in ConnectivityService
This commit is contained in:
@@ -3460,7 +3460,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
synchronized (mProxyLock) {
|
synchronized (mProxyLock) {
|
||||||
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
|
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
|
||||||
if (mDefaultProxy == proxy) return; // catches repeated nulls
|
if (mDefaultProxy == proxy) return; // catches repeated nulls
|
||||||
if (!proxy.isValid()) {
|
if (proxy != null && !proxy.isValid()) {
|
||||||
if (DBG) log("Invalid proxy properties, ignoring: " + proxy.toString());
|
if (DBG) log("Invalid proxy properties, ignoring: " + proxy.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user