summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
index e6884fb6..740c7d87 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
@@ -93,6 +93,16 @@ public class SigningState extends State {
}
if(this.threadException != null) {
+ // workaround for PDF-AS nullpointerexception intercepting our IllegalStateException
+ // cf. issue #52
+ // this is a bit of a hack...
+ if (status.getPreviousState() instanceof MobileBKUState)
+ {
+ String mobileBkuError = ((MobileBKUState)status.getPreviousState()).getStatus().getErrorMessage();
+ if (mobileBkuError.equals("cancel"))
+ this.threadException = new SignatureException(new IllegalStateException());
+ }
+
String message = Messages.getString("error.Signatur"); //$NON-NLS-1$
if (this.threadException instanceof SignatureException) {
Throwable cause = this.threadException;