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) { } catch (IOException e) {
valid = false; valid = false;
} finally { } finally {
if(stream != null) stream.close(); try {
if(stream != null) stream.close();
} catch(IOException e) {
e.printStackTrace();
}
} }
return valid; return valid;