aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:24:58 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:25:26 +0200
commitbf0aa0afbb336ec5d5acb719e130d42f15bc8900 (patch)
tree330f08ac1671a9a993e59dfef1d87a392234d0e5 /pdf-as-lib/src/main
parentca954e8fc5832a7ff686e0b878951079d8f8fe12 (diff)
parent3fde4b0164d1eb2f3fb32718b4011fff2b2b80ed (diff)
downloadpdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.tar.gz
pdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.tar.bz2
pdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.zip
Merge branch 'feature/issue_44' into master
Diffstat (limited to 'pdf-as-lib/src/main')
-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);