From 2271407bc5fd54807fb66e6793c25ea196d1f65c Mon Sep 17 00:00:00 2001 From: tknall Date: Thu, 27 Jan 2011 19:00:24 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@738 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../main/java/at/gv/egiz/pdfas/web/helper/SigningTimeHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pdf-as-web/src/main/java/at/gv/egiz') 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); -- cgit v1.2.3