diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index a33e8459..8b9a7826 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -763,8 +763,14 @@ public class MainWindow implements Runnable, RipStatusHandler { } Logger.getRootLogger().setLevel(newLevel); logger.setLevel(newLevel); - ((ConsoleAppender)Logger.getRootLogger().getAppender("stdout")).setThreshold(newLevel); - ((FileAppender)Logger.getRootLogger().getAppender("FILE")).setThreshold(newLevel); + ConsoleAppender ca = (ConsoleAppender)Logger.getRootLogger().getAppender("stdout"); + if (ca != null) { + ca.setThreshold(newLevel); + } + FileAppender fa = (FileAppender)Logger.getRootLogger().getAppender("FILE"); + if (fa != null) { + fa.setThreshold(newLevel); + } } private void setupTrayIcon() {