Fix: NullPointerException triggered when http error in job allocation (#274)
This commit is contained in:
@@ -475,11 +475,16 @@ public class Server extends Thread {
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
if (output != null) {
|
||||
output.flush();
|
||||
output.close();
|
||||
}
|
||||
|
||||
if (is != null) {
|
||||
is.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.log.debug(String.format("Server::HTTPGetFile Error trying to close the open streams (%s)", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user