fix config ui desc NPE
authorNiki Roo <niki@nikiroo.be>
Sun, 24 Mar 2019 17:29:17 +0000 (18:29 +0100)
committerNiki Roo <niki@nikiroo.be>
Sun, 24 Mar 2019 17:29:17 +0000 (18:29 +0100)
src/be/nikiroo/utils/ui/ConfigItem.java

index 8545485d0dc2a98196796bb2ec305c502acb2755..691c6198319b24d71ea2710e6f96f7aa348a3c49 100644 (file)
@@ -51,7 +51,7 @@ public class ConfigItem<E extends Enum<E>> extends JPanel {
                String tooltip = null;
                if (bundle.getDescriptionBundle() != null) {
                        tooltip = bundle.getDescriptionBundle().getString(id);
-                       if (tooltip.trim().isEmpty()) {
+                       if (tooltip != null && tooltip.trim().isEmpty()) {
                                tooltip = null;
                        }
                }