diff --git a/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java b/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java index a92e6113a..658796f60 100644 --- a/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java +++ b/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java @@ -124,6 +124,10 @@ private void setupRenderingHints(final UIDefaults defaults) { Toolkit toolkit = Toolkit.getDefaultToolkit(); Map desktopHints = (Map) toolkit.getDesktopProperty(GraphicsUtil.DESKTOP_HINTS_KEY); + if (desktopHints == null) { + desktopHints = Collections.emptyMap(); + } + Object aaHint = desktopHints.get(RenderingHints.KEY_TEXT_ANTIALIASING); Object lcdContrastHint = desktopHints.get(RenderingHints.KEY_TEXT_LCD_CONTRAST);