* commit '30f045c90071035c3b008b99d0e2d2773444a554': Fix NPE when going from proxy to no proxy.
This commit is contained in:
@@ -2484,7 +2484,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
synchronized (this) {
|
||||
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
|
||||
if (mDefaultProxy == proxy) return;
|
||||
if (!TextUtils.isEmpty(proxy.getHost())) {
|
||||
if (proxy != null && !TextUtils.isEmpty(proxy.getHost())) {
|
||||
mDefaultProxy = proxy;
|
||||
} else {
|
||||
mDefaultProxy = null;
|
||||
|
||||
Reference in New Issue
Block a user