Open stefanofornari opened 7 years ago
In Util:114 the line
in = new BufferedReader(new InputStreamReader(con.getErrorStream()));
does not take into account that con.getErrorStream() may return null, in such case a NPE will be thrown.
See https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html#getErrorStream()
In Util:114 the line
in = new BufferedReader(new InputStreamReader(con.getErrorStream()));
does not take into account that con.getErrorStream() may return null, in such case a NPE will be thrown.
See https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html#getErrorStream()