diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-06-21 13:06:58 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-06-21 13:06:58 +0000 |
commit | 969876494ed1a289301d2efc7c81f640c986c821 (patch) | |
tree | 663204aec1345af6c2d3887eb9f8718ccba8c226 | |
parent | 49151209f24393f0714182f57e0d61997e0a7ceb (diff) | |
download | xmlgraphics-fop-969876494ed1a289301d2efc7c81f640c986c821.tar.gz xmlgraphics-fop-969876494ed1a289301d2efc7c81f640c986c821.zip |
Bugfix for NullPointerException when xmp:ModifyDate isn't set in the FO metadata.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@415981 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFMetadata.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFMetadata.java b/src/java/org/apache/fop/pdf/PDFMetadata.java index 5a4d20d5d..e767cbf1b 100644 --- a/src/java/org/apache/fop/pdf/PDFMetadata.java +++ b/src/java/org/apache/fop/pdf/PDFMetadata.java @@ -234,7 +234,9 @@ public class PDFMetadata extends PDFStream { //than Info/CreationDate info.setCreationDate(d); d = xmpBasic.getModifyDate(); - xmpBasic.setModifyDate(d); - info.setModDate(d); + if (d != null) { //ModifyDate is only required for PDF/X + xmpBasic.setModifyDate(d); + info.setModDate(d); + } } } |