--- a/jdk/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java Mon Oct 19 16:31:48 2009 -0700
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java Tue Oct 20 15:35:55 2009 +0100
@@ -284,14 +284,16 @@
params.setOpaque (p.findValue("opaque"));
params.setQop (p.findValue("qop"));
- String uri;
+ String uri="";
String method;
if (type == PROXY_AUTHENTICATION &&
conn.tunnelState() == HttpURLConnection.TunnelState.SETUP) {
uri = HttpURLConnection.connectRequestURI(conn.getURL());
method = HTTP_CONNECT;
} else {
- uri = conn.getRequestURI();
+ try {
+ uri = conn.getRequestURI();
+ } catch (IOException e) {}
method = conn.getMethod();
}