Merge "Fix NPE in ConnectivityService" into klp-dev

This commit is contained in:
Robert Greenwalt
2013-11-18 18:27:23 +00:00
committed by Android (Google) Code Review

View File

@@ -3457,7 +3457,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
synchronized (mProxyLock) {
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
if (mDefaultProxy == proxy) return; // catches repeated nulls
if (!proxy.isValid()) {
if (proxy != null && !proxy.isValid()) {
if (DBG) log("Invalid proxy properties, ignoring: " + proxy.toString());
return;
}