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:
Robert Greenwalt
2010-12-23 15:51:10 -08:00
parent 8ca8876c68
commit 611291c8ef

View File

@@ -2154,6 +2154,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
}
private void sendProxyBroadcast(ProxyProperties proxy) {
if (proxy == null) proxy = new ProxyProperties("", 0, "");
log("sending Proxy Broadcast for " + proxy);
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);