diff options
Diffstat (limited to 'pdf-as-common/src/main/java')
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java | 5 |
1 files changed, 4 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); } } |