Skip to content

Commit 1a23088

Browse files
Robert GreenwaltAndroid (Google) Code Review
authored andcommitted
Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE
2 parents 0d8acea + fde1eb7 commit 1a23088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/java/com/android/server/ConnectivityService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ private void handleApplyDefaultProxy(int type) {
22992299
synchronized (this) {
23002300
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
23012301
if (mDefaultProxy == proxy) return;
2302-
if (!TextUtils.isEmpty(proxy.getHost())) {
2302+
if (proxy != null && !TextUtils.isEmpty(proxy.getHost())) {
23032303
mDefaultProxy = proxy;
23042304
} else {
23052305
mDefaultProxy = null;

0 commit comments

Comments
 (0)