Mute jfx accessible exceptions

This commit is contained in:
crschnick
2025-07-21 03:21:58 +00:00
parent 553020faba
commit 08c4d649db
@@ -94,6 +94,12 @@ public abstract class OperationMode {
return;
}
// There are some accessibility exceptions on macOS, nothing we can do about that
if (Platform.isFxApplicationThread() && ex instanceof NullPointerException && ex.getMessage() != null && ex.getMessage().contains("Accessible")) {
ErrorEventFactory.fromThrowable(ex).expected().omit().build().handle();
return;
}
// Handle any startup uncaught errors
if (OperationMode.isInStartup() && thread.threadId() == 1) {
ex.printStackTrace();