fixed nullpointer

This commit is contained in:
anhefti 2021-08-12 10:30:37 +02:00
parent 107b3beb35
commit ff7cc5b020

View file

@ -829,7 +829,7 @@ public class WidgetFactory {
return selectionLocalized(
type, parent, itemsSupplier, toolTipTextKey, itemsToolTipSupplier, null,
this.i18nSupport.getText(label));
(label != null) ? this.i18nSupport.getText(label) : null);
}
public Selection selectionLocalized(
@ -842,7 +842,7 @@ public class WidgetFactory {
final LocTextKey label) {
return selectionLocalized(
type, parent, itemsSupplier, toolTipTextKey, itemsToolTipSupplier, actionLocTextPrefix,
this.i18nSupport.getText(label));
(label != null) ? this.i18nSupport.getText(label) : null);
}
public Selection selectionLocalized(