From 75ce8c3a91d8b80bcc6bc7bd6e083606215f7262 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 6 Oct 2022 11:11:09 +0200 Subject: re-do the #52 hack to avoid dependency on atruststatus --- .../java/at/asit/pdfover/gui/workflow/states/SigningState.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pdf-over-gui') 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 169aefb8..b02ac057 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 @@ -91,16 +91,6 @@ 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()).status.errorMessage; - if ("cancel".equals(mobileBkuError)) - this.threadException = new SignatureException(new IllegalStateException()); - } - String message = Messages.getString("error.Signatur"); if (this.threadException instanceof SignatureException) { Throwable cause = this.threadException; -- cgit v1.2.3