summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Stadler <stadler@android.com>2010-08-31 14:38:49 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-31 14:38:49 -0700
commiteb91e78ff9a13326c6a43c7cdad6ca02fc34389e (patch)
tree01e999ee17762d0ded82f7e718752c7cb788af08
parentd092f380021ca0520cc27b0272cd1a44d801d167 (diff)
parentac19f24cc10d380b4065778e8ff5492c10a75cdd (diff)
downloadframeworks_base-eb91e78ff9a13326c6a43c7cdad6ca02fc34389e.zip
frameworks_base-eb91e78ff9a13326c6a43c7cdad6ca02fc34389e.tar.gz
frameworks_base-eb91e78ff9a13326c6a43c7cdad6ca02fc34389e.tar.bz2
Merge "Fix crash when proxy exclusion list is null."
-rw-r--r--core/java/android/net/ProxyProperties.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/net/ProxyProperties.java b/core/java/android/net/ProxyProperties.java
index ba27221..17d0ec0 100644
--- a/core/java/android/net/ProxyProperties.java
+++ b/core/java/android/net/ProxyProperties.java
@@ -41,13 +41,17 @@ public class ProxyProperties implements Parcelable {
if (source != null) {
mProxy = source.getAddress();
mPort = source.getPort();
- mExclusionList = new String(source.getExclusionList());
+ String exclusionList = source.getExclusionList();
+ if (exclusionList != null) {
+ mExclusionList = new String(exclusionList);
+ }
}
}
public InetAddress getAddress() {
return mProxy;
}
+
public void setAddress(InetAddress proxy) {
mProxy = proxy;
}
@@ -55,6 +59,7 @@ public class ProxyProperties implements Parcelable {
public int getPort() {
return mPort;
}
+
public void setPort(int port) {
mPort = port;
}
@@ -62,6 +67,7 @@ public class ProxyProperties implements Parcelable {
public String getExclusionList() {
return mExclusionList;
}
+
public void setExclusionList(String exclusionList) {
mExclusionList = exclusionList;
}
@@ -121,5 +127,4 @@ public class ProxyProperties implements Parcelable {
return new ProxyProperties[size];
}
};
-
-};
+}