From 7c45ae6207d5223ce5e74b9bef8ab087a59ea19f Mon Sep 17 00:00:00 2001 From: Paul Trudel Date: Tue, 9 May 2023 16:18:20 +0000 Subject: [PATCH] Added try-catch to stream close --- .../src/main/java/org/bigbluebutton/prescheck/Main.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-web/pres-checker/src/main/java/org/bigbluebutton/prescheck/Main.java b/bigbluebutton-web/pres-checker/src/main/java/org/bigbluebutton/prescheck/Main.java index 24902681fb..d98198d909 100755 --- a/bigbluebutton-web/pres-checker/src/main/java/org/bigbluebutton/prescheck/Main.java +++ b/bigbluebutton-web/pres-checker/src/main/java/org/bigbluebutton/prescheck/Main.java @@ -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;