From: Niki Roo Date: Sun, 24 Mar 2019 17:29:17 +0000 (+0100) Subject: fix config ui desc NPE X-Git-Tag: fanfix-3.0.1~29^2~170^2 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=82430d859932daeceb7f3deefc1baea8b04983f5;p=fanfix.git fix config ui desc NPE --- diff --git a/src/be/nikiroo/utils/ui/ConfigItem.java b/src/be/nikiroo/utils/ui/ConfigItem.java index 8545485..691c619 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; } }