am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit '1a230885b356256e91b3bf006ec72213ba6f8f76':
  Fix NPE when going from proxy to no proxy.
This commit is contained in:
Robert Greenwalt
2011-07-29 10:53:16 -07:00
committed by Android Git Automerger

View File

@@ -2300,7 +2300,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;