diff options
| author | Andrew Stadler <stadler@android.com> | 2010-08-31 14:28:58 -0700 |
|---|---|---|
| committer | Andrew Stadler <stadler@android.com> | 2010-08-31 14:28:58 -0700 |
| commit | ac19f24cc10d380b4065778e8ff5492c10a75cdd (patch) | |
| tree | 9aa977b9b28717b582578bc4d8bcfa22d5233f86 /core | |
| parent | 46733267cd6323c6022fa79cae2dedea80989f21 (diff) | |
| download | frameworks_base-ac19f24cc10d380b4065778e8ff5492c10a75cdd.zip frameworks_base-ac19f24cc10d380b4065778e8ff5492c10a75cdd.tar.gz frameworks_base-ac19f24cc10d380b4065778e8ff5492c10a75cdd.tar.bz2 | |
Fix crash when proxy exclusion list is null.
Also cleaned up source a little bit and eliminated a warning.
Bug: 2964821
Change-Id: I35825bb345742ea1a1854e8998aa67e353deaa17
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/net/ProxyProperties.java | 11 |
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]; } }; - -}; +} |
