Added try-catch to stream close
This commit is contained in:
parent
6c0915d71b
commit
7c45ae6207
@ -47,7 +47,11 @@ public class Main {
|
||||
} catch (IOException e) {
|
||||
valid = false;
|
||||
} finally {
|
||||
if(stream != null) stream.close();
|
||||
try {
|
||||
if(stream != null) stream.close();
|
||||
} catch(IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
return valid;
|
||||
|
Loading…
Reference in New Issue
Block a user