Fix reboot loop due to NPE
Bug: 2962059 Change-Id: I73d5fa5ef0f29dc139c843b34f58f189c94dfe4b
This commit is contained in:
parent
1f1bcfe6a2
commit
fd151ec69b
1 changed files with 12 additions and 8 deletions
|
|
@ -38,9 +38,11 @@ public class ProxyProperties implements Parcelable {
|
|||
|
||||
// copy constructor instead of clone
|
||||
public ProxyProperties(ProxyProperties source) {
|
||||
mProxy = source.getAddress();
|
||||
mPort = source.getPort();
|
||||
mExclusionList = new String(source.getExclusionList());
|
||||
if (source != null) {
|
||||
mProxy = source.getAddress();
|
||||
mPort = source.getPort();
|
||||
mExclusionList = new String(source.getExclusionList());
|
||||
}
|
||||
}
|
||||
|
||||
public InetAddress getAddress() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue