From 93d1862956c3d7eca281d22b74a31c72391ed951 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 28 Sep 2022 17:42:50 +0200 Subject: NPE fix --- .../main/java/at/asit/pdfover/gui/composites/MobileBKUQRComposite.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUQRComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUQRComposite.java index 242bf3c6..121d8c71 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUQRComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUQRComposite.java @@ -197,9 +197,8 @@ public class MobileBKUQRComposite extends StateComposite { * the reference value to set */ public void setRefVal(String refVal) { - this.refVal = refVal.trim(); - if (this.refVal != null) { + this.refVal = refVal.trim(); this.lblRefVal.setText(this.refVal); } else { this.lblRefVal.setText(""); -- cgit v1.2.3