From 82430d859932daeceb7f3deefc1baea8b04983f5 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 24 Mar 2019 18:29:17 +0100 Subject: [PATCH] fix config ui desc NPE --- src/be/nikiroo/utils/ui/ConfigItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/be/nikiroo/utils/ui/ConfigItem.java b/src/be/nikiroo/utils/ui/ConfigItem.java index 8545485d..691c6198 100644 --- a/src/be/nikiroo/utils/ui/ConfigItem.java +++ b/src/be/nikiroo/utils/ui/ConfigItem.java @@ -51,7 +51,7 @@ public class ConfigItem> 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; } } -- 2.27.0