mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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:
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)));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user