From 3257edead4eef7dd8a946ec0cdec46b7533706a5 Mon Sep 17 00:00:00 2001 From: emusic Date: Thu, 12 Mar 2020 10:35:44 +0100 Subject: exception handling when placeholder_web_id is not used --- .../java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pdf-as-web/src/main/java') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java index d1345eef..9ebd5382 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java @@ -341,8 +341,14 @@ public class ExternSignServlet extends HttpServlet { //read and set placholder web id - String placeholder_id = PdfAsParameterExtractor.getPlaceholderId(request); - PlaceholderWebConfiguration.setValue(IConfigurationConstants.PLACEHOLDER_WEB_ID, placeholder_id); + try{ + String placeholder_id = PdfAsParameterExtractor.getPlaceholderId(request); + if(!placeholder_id.equalsIgnoreCase("")) + PlaceholderWebConfiguration.setValue(IConfigurationConstants.PLACEHOLDER_WEB_ID, placeholder_id); + } catch(Exception e) { + logger.error(e.getLocalizedMessage()); + } + String filename = PdfAsParameterExtractor.getFilename(request); if(filename != null) { -- cgit v1.2.3