Merge "Fix NPE in toString" am: 329e04abc8
Original change: undetermined Change-Id: Ic39746cf86e94e65b9fe0d5fc6189e41348d45a7
This commit is contained in:
@@ -75,8 +75,12 @@ public class ProxyProperties implements Parcelable {
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(mProxy.getHostAddress()).append(":").append(mPort)
|
||||
.append(" xl=").append(mExclusionList);
|
||||
if (mProxy != null) {
|
||||
sb.append(mProxy.getHostAddress()).append(":").append(mPort);
|
||||
if (mExclusionList != null) {
|
||||
sb.append(" xl=").append(mExclusionList);
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user