summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-03 18:14:48 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-03 18:14:48 +0100
commitc072c4e780b4582b18b3b36ee75c5fd58db00dad (patch)
treeb92de4570bcd83e761633ac4863cbfb299425820 /pdf-over-gui/src/main/java
parentd74a1c548cdc9c1617810779deb5aab6aa3c59a2 (diff)
downloadpdf-over-c072c4e780b4582b18b3b36ee75c5fd58db00dad.tar.gz
pdf-over-c072c4e780b4582b18b3b36ee75c5fd58db00dad.tar.bz2
pdf-over-c072c4e780b4582b18b3b36ee75c5fd58db00dad.zip
Show appropriate error when submitting empty TAN
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java6
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$