mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user