Fix crash in logging when log files are not writable (#286)

* Addresses null pointer crash in logging when log files are not writable

* One of these days, I'll be able to type code without spotless complaining.

But today is not that day.
This commit is contained in:
Chris Gerth
2021-09-23 21:38:50 -05:00
committed by GitHub
parent f8def88e4d
commit 5a475e1071

View File

@@ -344,6 +344,8 @@ public class Logger {
wantsFlush = true;
} catch (IOException e) {
e.printStackTrace();
} catch (NullPointerException e) {
// Nothing to do - no stream available for writing
}
}
}