summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-05-04 15:29:14 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-05-04 15:29:14 +0200
commit6c2bcd00407f6c6ab9b17de203e4ee37f9777481 (patch)
tree1e382212fb59774e75952959726575f0608372e2 /pdf-over-gui/src/main/java/at
parentc88aac2f93447c304a0f0e309a43d0d386688714 (diff)
downloadpdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.tar.gz
pdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.tar.bz2
pdf-over-6c2bcd00407f6c6ab9b17de203e4ee37f9777481.zip
fix NPE
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java2
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());
}