forked from pool/java-21-openjdk
16 lines
570 B
Diff
16 lines
570 B
Diff
--- a/src/java.desktop/share/classes/java/awt/Toolkit.java
|
|
+++ b/src/java.desktop/share/classes/java/awt/Toolkit.java
|
|
@@ -602,7 +602,11 @@ public abstract class Toolkit {
|
|
toolkit = new HeadlessToolkit(toolkit);
|
|
}
|
|
if (!GraphicsEnvironment.isHeadless()) {
|
|
- loadAssistiveTechnologies();
|
|
+ try {
|
|
+ loadAssistiveTechnologies();
|
|
+ } catch (AWTError error) {
|
|
+ // ignore silently
|
|
+ }
|
|
}
|
|
}
|
|
return toolkit;
|