Catch ExceptionInInitializerError when creating extension

This commit is contained in:
Aurora Lahtela 2023-03-30 16:31:22 +03:00
parent 64e2655466
commit 3da7612f92

View File

@ -231,7 +231,7 @@ public class ExtensionRegister {
.ifPresent(caller -> registerListener.accept(factory, caller));
} catch (NotReadyException | UnsupportedOperationException ignore) {
// This exception signals that the extension can not be registered right now (Intended fail).
} catch (Exception | NoClassDefFoundError | IncompatibleClassChangeError e) {
} catch (Exception | ExceptionInInitializerError | NoClassDefFoundError | IncompatibleClassChangeError e) {
// Places all exceptions to one exception with plugin information so that they can be reported.
suppressException(factory.getClass(), e);
}