From ff7cc5b020ff0d6df8c0566e417ba5f32fce52bf Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 12 Aug 2021 10:30:37 +0200 Subject: [PATCH] fixed nullpointer --- .../java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java b/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java index d771a77f..c8ed002a 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java @@ -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(