Added try-catch to stream close

This commit is contained in:
Paul Trudel 2023-05-09 16:18:20 +00:00
parent 6c0915d71b
commit 7c45ae6207

View File

@ -47,7 +47,11 @@ public class Main {
} catch (IOException e) {
valid = false;
} finally {
try {
if(stream != null) stream.close();
} catch(IOException e) {
e.printStackTrace();
}
}
return valid;