diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java index 69210a613..dc8224a5d 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java @@ -94,7 +94,7 @@ public class PluginErrorLogger implements ErrorLogger { } private void mergeAdditionalContext(Throwable throwable, ErrorContext context) { - Throwable cause = throwable.getCause(); + Throwable cause = throwable; while (cause != null) { if (cause instanceof ExceptionWithContext) { ((ExceptionWithContext) cause).getContext().ifPresent(context::merge);