We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d8acea + fde1eb7 commit 1a23088Copy full SHA for 1a23088
1 file changed
services/java/com/android/server/ConnectivityService.java
@@ -2299,7 +2299,7 @@ private void handleApplyDefaultProxy(int type) {
2299
synchronized (this) {
2300
if (mDefaultProxy != null && mDefaultProxy.equals(proxy)) return;
2301
if (mDefaultProxy == proxy) return;
2302
- if (!TextUtils.isEmpty(proxy.getHost())) {
+ if (proxy != null && !TextUtils.isEmpty(proxy.getHost())) {
2303
mDefaultProxy = proxy;
2304
} else {
2305
mDefaultProxy = null;
0 commit comments