Make sure the ProxyProperties is always present.
Lets people know that it's non-null, though the InetAddr inside may be. bug:3305689 Change-Id: I0fe16a9ef1feba987680c419fa2dc0e00e400d91
This commit is contained in:
@@ -2154,6 +2154,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sendProxyBroadcast(ProxyProperties proxy) {
|
private void sendProxyBroadcast(ProxyProperties proxy) {
|
||||||
|
if (proxy == null) proxy = new ProxyProperties("", 0, "");
|
||||||
log("sending Proxy Broadcast for " + proxy);
|
log("sending Proxy Broadcast for " + proxy);
|
||||||
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
||||||
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
||||||
|
|||||||
Reference in New Issue
Block a user