From: Niki Roo Date: Sun, 24 Mar 2019 17:29:17 +0000 (+0100) Subject: fix config ui desc NPE X-Git-Tag: nikiroo-utils-4.6.0~4^2 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=82430d859932daeceb7f3deefc1baea8b04983f5;p=nikiroo-utils.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; } }