diff options
Diffstat (limited to 'pdf-as-common')
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java | 5 | ||||
-rw-r--r-- | pdf-as-common/src/main/resources/resources/messages/common.properties | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java index 61bfffda..b8a5fc62 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java @@ -18,6 +18,9 @@ public class PdfAsValidationException extends PdfAsException { @Override protected String localizeMessage(String msgId) { - return String.format(MessageResolver.resolveMessage(msgId), parameter); + if(parameter != null) { + return String.format(MessageResolver.resolveMessage(msgId), parameter); + } + return MessageResolver.resolveMessage(msgId); } } diff --git a/pdf-as-common/src/main/resources/resources/messages/common.properties b/pdf-as-common/src/main/resources/resources/messages/common.properties index ef3b4949..0191bdd9 100644 --- a/pdf-as-common/src/main/resources/resources/messages/common.properties +++ b/pdf-as-common/src/main/resources/resources/messages/common.properties @@ -34,6 +34,8 @@ error.pdf.sig.06=Failed to finish signature process error.pdf.sig.07=Failed to determine Signature Profile error.pdf.sig.08=Signature created by the BKU is not valid error.pdf.sig.09=Signature profile %s not available +error.pdf.sig.10=No signature data available +error.pdf.sig.11=No data sink available #Signature verification errors |