From 1c6646e49761792b63028aea06a2e3a318361955 Mon Sep 17 00:00:00 2001 From: Alexander Marsalek Date: Tue, 1 Jun 2021 11:06:22 +0200 Subject: nullpointer fix pdf-as-web --- .../src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz') 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 map) throws PdfAsException { + if(map == null) + map = new HashMap(); Map tmpMap = Collections.unmodifiableMap(map); String keyRegex = configuration.getValue(IConfigurationConstants.SIG_BLOCK_PARAMETER_KEY_REGEX); String valueRegex = configuration.getValue(IConfigurationConstants.SIG_BLOCK_PARAMETER_VALUE_REGEX); -- cgit v1.2.3