diff options
Diffstat (limited to 'pdf-over-signer/src/main/java')
-rw-r--r-- | pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java index a78e33c6..df094718 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java @@ -79,6 +79,11 @@ public class PdfAs4BKUSLConnector extends BaseSLConnector { } catch (PdfAs4SLRequestException e) { throw new PDFIOException("error.pdf.io.03", e); } catch (SignatureException e) { + Throwable e2 = e; + while (e2.getCause() != null) + e2 = e2.getCause(); + /*if (e2 instanceof IllegalStateException) // user cancelled (TODO: this is a pretty big hack honestly) + return null;*/ throw new PDFIOException("error.pdf.io.03", e); } |