aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:06:22 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:06:22 +0200
commit1c6646e49761792b63028aea06a2e3a318361955 (patch)
tree9c792a7482af52c947d9bff45c4ea2eb58eb0b23
parente6c60914f63c7ad0381ac008542b4ef9c1938383 (diff)
downloadpdf-as-4-1c6646e49761792b63028aea06a2e3a318361955.tar.gz
pdf-as-4-1c6646e49761792b63028aea06a2e3a318361955.tar.bz2
pdf-as-4-1c6646e49761792b63028aea06a2e3a318361955.zip
nullpointer fix pdf-as-web
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java
index 5c3e548f..1929f95e 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java
@@ -24,6 +24,7 @@
package at.gv.egiz.pdfas.lib.impl;
import java.util.Collections;
+import java.util.HashMap;
import java.util.Map;
import javax.activation.DataSource;
@@ -84,6 +85,8 @@ protected Configuration configuration;
@Override
public void setDynamicSignatureBlockArguments(Map<String, String> map) throws PdfAsException {
+ if(map == null)
+ map = new HashMap<String, String>();
Map<String, String> tmpMap = Collections.unmodifiableMap(map);
String keyRegex = configuration.getValue(IConfigurationConstants.SIG_BLOCK_PARAMETER_KEY_REGEX);
String valueRegex = configuration.getValue(IConfigurationConstants.SIG_BLOCK_PARAMETER_VALUE_REGEX);