From d7798b32756e1992cfa7df04f17bcc3a5d98e756 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 5 May 2024 00:11:12 +0200 Subject: [PATCH] Fix error logging Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/ErrorLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/ErrorLogger.java b/src/de/steamwar/bungeecore/ErrorLogger.java index eff349df..1dd6f9b5 100644 --- a/src/de/steamwar/bungeecore/ErrorLogger.java +++ b/src/de/steamwar/bungeecore/ErrorLogger.java @@ -47,7 +47,7 @@ public class ErrorLogger extends Handler { if(logRecord.getLevel().intValue() < Level.WARNING.intValue()) return; - String message = MessageFormat.format(logRecord.getMessage(), logRecord.getParameters()); + String message = logRecord.getParameters() != null ? MessageFormat.format(logRecord.getMessage(), logRecord.getParameters()) : logRecord.getMessage(); for(String reason : ignoreContains) if(message.contains(reason)) return;