diff --git a/src/main/java/fr/xephi/authme/output/Log4JFilter.java b/src/main/java/fr/xephi/authme/output/Log4JFilter.java index f1f35a3bd..336af7794 100644 --- a/src/main/java/fr/xephi/authme/output/Log4JFilter.java +++ b/src/main/java/fr/xephi/authme/output/Log4JFilter.java @@ -51,6 +51,9 @@ public class Log4JFilter implements Filter { @Override public Result filter(LogEvent record) { + if (record == null) { + return Result.NEUTRAL; + } return validateMessage(record.getMessage()); }