提交 b2730f3d 编写于 作者: K Kohsuke Kawaguchi

error stream isn't always available

上级 cf45c6a8
......@@ -307,10 +307,12 @@ public class CLI {
} catch (IOException e) {
try {
InputStream es = ((HttpURLConnection)conn).getErrorStream();
while (es.read(buf) >= 0) {
// Ignore
if (es!=null) {
while (es.read(buf) >= 0) {
// Ignore
}
es.close();
}
es.close();
} catch (IOException ex) {
// Ignore
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册