From 6c9f42353d91a2663ae2e46b8f39025154719077 Mon Sep 17 00:00:00 2001 From: LeStegii Date: Mon, 13 May 2024 14:49:41 +0200 Subject: [PATCH] fix(framework): Catch inaccessible object error in reflection utils --- framework/src/main/java/org/fulib/fx/util/ReflectionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/main/java/org/fulib/fx/util/ReflectionUtil.java b/framework/src/main/java/org/fulib/fx/util/ReflectionUtil.java index 2e05c4e..fbd7f17 100644 --- a/framework/src/main/java/org/fulib/fx/util/ReflectionUtil.java +++ b/framework/src/main/java/org/fulib/fx/util/ReflectionUtil.java @@ -37,7 +37,7 @@ private ReflectionUtil() { mouseHandlerCtor = Class.forName(Scene.class.getName() + "$MouseHandler").getDeclaredConstructor(Scene.class); mouseHandlerField.setAccessible(true); mouseHandlerCtor.setAccessible(true); - } catch (ReflectiveOperationException e) { + } catch (ReflectiveOperationException | InaccessibleObjectException e) { FulibFxApp.LOGGER.severe("Could not initialize mouse handler reflection. This may cause problems with mouse drag events."); } }