aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/java')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java
index 4837a70..5bfeeb9 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java
@@ -32,7 +32,12 @@ public final class SigningTimeHelper {
if (tolerance == null) {
try {
String toleranceString = WebSettingsReader.getInstance().getSigningTimeTolerance();
- tolerance = new Integer(Integer.parseInt(toleranceString));
+ if (toleranceString != null) {
+ tolerance = new Integer(Integer.parseInt(toleranceString));
+ } else {
+ LOG.warn("Configuration key signingtimetolerance missing. Disabling signing time check.");
+ tolerance = new Integer(-1);
+ }
} catch (NumberFormatException e) {
LOG.warn("Invalid configuration key signingtimetolerance. Disabling signing time check.");
tolerance = new Integer(-1);