From c072c4e780b4582b18b3b36ee75c5fd58db00dad Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 3 Dec 2014 18:14:48 +0100 Subject: Show appropriate error when submitting empty TAN --- .../at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java index 66063a62..7bda7fc4 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java @@ -72,6 +72,12 @@ public class MobileBKUEnterTANComposite extends StateComposite { tan = tan.trim(); + if (tan.isEmpty()) { + MobileBKUEnterTANComposite.this.setMessage(Messages + .getString("error.NoTan")); //$NON-NLS-1$ + return; + } + if (MobileBKUEnterTANComposite.this.refVal.startsWith(tan)) { MobileBKUEnterTANComposite.this.setMessage(Messages .getString("error.EnteredReferenceValue")); //$NON-NLS-1$ -- cgit v1.2.3