aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-01-27 19:00:24 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-01-27 19:00:24 +0000
commit2271407bc5fd54807fb66e6793c25ea196d1f65c (patch)
tree132d1ef5bf5d976e0b287f7850039f2a679e1310 /pdf-as-web/src/main
parent999e78cab42a69fa0b7b3a1a890fe81173e66bef (diff)
downloadpdf-as-3-2271407bc5fd54807fb66e6793c25ea196d1f65c.tar.gz
pdf-as-3-2271407bc5fd54807fb66e6793c25ea196d1f65c.tar.bz2
pdf-as-3-2271407bc5fd54807fb66e6793c25ea196d1f65c.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@738 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main')
-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);