From 1201d5ce7d63acb4e2ed27515abe03b15d1fee3f Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 9 Jun 2024 19:36:44 +0200 Subject: [PATCH] Catch more exceptions --- .../java/de/staropensource/sosengine/base/classes/Event.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/classes/Event.java b/base/src/main/java/de/staropensource/sosengine/base/classes/Event.java index 4d04e7d..61d23bf 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/classes/Event.java +++ b/base/src/main/java/de/staropensource/sosengine/base/classes/Event.java @@ -23,7 +23,6 @@ import de.staropensource.sosengine.base.annotations.EventListener; import de.staropensource.sosengine.base.logging.Logger; import de.staropensource.sosengine.base.types.CodePart; import de.staropensource.sosengine.base.types.LogIssuer; -import lombok.AccessLevel; import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.reflections.Reflections; @@ -119,7 +118,7 @@ public abstract class Event { for (Method method : getAnnotatedMethods()) { try { method.invoke(null); - } catch (IllegalAccessException | InvocationTargetException ignored) {} + } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NullPointerException | ExceptionInInitializerError ignored) {} } }