Mystery NPE. Something to do with a FishEyeCVS URL validation timing out on a hung server.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3268 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
jglick committed 2007-04-29 17:04:25 +00:00
1 parent 312ca05bc7
commit 30bf9145d7
1 file changed
+3
@@ -91,6 +91,9 @@ public abstract class FormFieldValidator {
protected BufferedReader open(URL url) throws IOException {
// use HTTP content type to find out the charset.
URLConnection con = url.openConnection();
if (con == null) { // XXX is this even permitted by URL.openConnection?
throw new IOException(url.toExternalForm());
}
return new BufferedReader(
new InputStreamReader(con.getInputStream(),getCharset(con)));
}