From 6c2bcd00407f6c6ab9b17de203e4ee37f9777481 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 4 May 2022 15:29:14 +0200 Subject: fix NPE --- .../src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at') 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 740c7d87..cc4f6e3a 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 @@ -99,7 +99,7 @@ public class SigningState extends State { if (status.getPreviousState() instanceof MobileBKUState) { String mobileBkuError = ((MobileBKUState)status.getPreviousState()).getStatus().getErrorMessage(); - if (mobileBkuError.equals("cancel")) + if ((mobileBkuError != null) && mobileBkuError.equals("cancel")) this.threadException = new SignatureException(new IllegalStateException()); } -- cgit v1.2.3