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 4d04e7d0..61d23bff 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) {} } }