From d87a0ae7e196e11b4da29487e6a31a95ac93490a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 1 Jun 2019 17:53:22 +0700 Subject: [PATCH] Maybe fix NPE on Linux --- source/net/filebot/ui/ThemeSupport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/filebot/ui/ThemeSupport.java b/source/net/filebot/ui/ThemeSupport.java index b7d32dab..71c7f573 100644 --- a/source/net/filebot/ui/ThemeSupport.java +++ b/source/net/filebot/ui/ThemeSupport.java @@ -143,6 +143,10 @@ public class ThemeSupport { @Override public void setLookAndFeel() throws Exception { + // Maybe fix NPE on Linux + // @see https://github.com/bulenkov/iconloader/issues/14 + UIManager.getFont("Label.font"); + UIManager.setLookAndFeel(new DarculaLaf()); Color selectionBackground = new Color(0x39698a);