fix config ui desc NPE
[nikiroo-utils.git] / 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;
                        }
                }