mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 11:20:34 +00:00
Mute jfx accessible exceptions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user