Fix reboot loop due to NPE am: fd151ec69b
Original change: undetermined Change-Id: I65d030651aa1e1befcf32df5ec8bb73d2297f6e0
This commit is contained in:
@@ -48,11 +48,13 @@ public class LinkProperties implements Parcelable {
|
||||
|
||||
// copy constructor instead of clone
|
||||
public LinkProperties(LinkProperties source) {
|
||||
mIface = source.getInterface();
|
||||
mAddresses = source.getAddresses();
|
||||
mDnses = source.getDnses();
|
||||
mGateway = source.getGateway();
|
||||
mHttpProxy = new ProxyProperties(source.getHttpProxy());
|
||||
if (source != null) {
|
||||
mIface = source.getInterface();
|
||||
mAddresses = source.getAddresses();
|
||||
mDnses = source.getDnses();
|
||||
mGateway = source.getGateway();
|
||||
mHttpProxy = new ProxyProperties(source.getHttpProxy());
|
||||
}
|
||||
}
|
||||
|
||||
public void setInterface(NetworkInterface iface) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user