diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-05-04 15:29:14 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-05-04 15:29:14 +0200 |
commit | 6c2bcd00407f6c6ab9b17de203e4ee37f9777481 (patch) | |
tree | 1e382212fb59774e75952959726575f0608372e2 /pdf-over-gui/src/main/java | |
parent | c88aac2f93447c304a0f0e309a43d0d386688714 (diff) | |
download | pdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.tar.gz pdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.tar.bz2 pdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.zip |
fix NPE
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.java | 2 |
1 files changed, 1 insertions, 1 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 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()); } |