diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-12-03 18:14:48 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-12-03 18:14:48 +0100 |
commit | c072c4e780b4582b18b3b36ee75c5fd58db00dad (patch) | |
tree | b92de4570bcd83e761633ac4863cbfb299425820 /pdf-over-gui/src/main/java/at | |
parent | d74a1c548cdc9c1617810779deb5aab6aa3c59a2 (diff) | |
download | mocca-c072c4e780b4582b18b3b36ee75c5fd58db00dad.tar.gz mocca-c072c4e780b4582b18b3b36ee75c5fd58db00dad.tar.bz2 mocca-c072c4e780b4582b18b3b36ee75c5fd58db00dad.zip |
Show appropriate error when submitting empty TAN
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java | 6 |
1 files changed, 6 insertions, 0 deletions
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$ |