am a50a0e90: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE
* commit 'a50a0e90fd':
Fix NPE when going from proxy to no proxy.
This commit is contained in:
commit
30f045c900
1 changed files with 1 additions and 1 deletions
|
|
@ -2300,7 +2300,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
|
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
|
||||||
if (mDefaultProxy == proxy) return;
|
if (mDefaultProxy == proxy) return;
|
||||||
if (!TextUtils.isEmpty(proxy.getHost())) {
|
if (proxy != null && !TextUtils.isEmpty(proxy.getHost())) {
|
||||||
mDefaultProxy = proxy;
|
mDefaultProxy = proxy;
|
||||||
} else {
|
} else {
|
||||||
mDefaultProxy = null;
|
mDefaultProxy = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue