aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2013-02-25 14:19:46 +0000
committerChris Bowditch <cbowditch@apache.org>2013-02-25 14:19:46 +0000
commit345150938ab9ef36b9ad7ac6d6dea00494995f43 (patch)
tree27ea4701021c00db42cca4b769d68053382b390a /src/java/org/apache
parent805d35e4e64fec6f2cdc81b1a9f39806817e5ad1 (diff)
downloadxmlgraphics-fop-345150938ab9ef36b9ad7ac6d6dea00494995f43.tar.gz
xmlgraphics-fop-345150938ab9ef36b9ad7ac6d6dea00494995f43.zip
FOP-2215; NullPointerException when generating IF with fox:external-document
Submitted by Simon Steiner (ssteiner.at.thunderhead.com) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1449718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/render/intermediate/IFSerializer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFSerializer.java b/src/java/org/apache/fop/render/intermediate/IFSerializer.java
index f8882f1e0..0a20437c0 100644
--- a/src/java/org/apache/fop/render/intermediate/IFSerializer.java
+++ b/src/java/org/apache/fop/render/intermediate/IFSerializer.java
@@ -294,7 +294,10 @@ implements IFConstants, IFPainter, IFDocumentNavigationHandler {
AttributesImpl atts = new AttributesImpl();
addAttribute(atts, "index", Integer.toString(index));
addAttribute(atts, "name", name);
- addAttribute(atts, "page-master-name", pageMasterName);
+ if (pageMasterName != null) {
+ //fox:external-document doesn't have a page-master
+ addAttribute(atts, "page-master-name", pageMasterName);
+ }
addAttribute(atts, "width", Integer.toString(size.width));
addAttribute(atts, "height", Integer.toString(size.height));
addForeignAttributes(atts);