]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2215; NullPointerException when generating IF with fox:external-document
authorChris Bowditch <cbowditch@apache.org>
Mon, 25 Feb 2013 14:19:46 +0000 (14:19 +0000)
committerChris Bowditch <cbowditch@apache.org>
Mon, 25 Feb 2013 14:19:46 +0000 (14:19 +0000)
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

src/java/org/apache/fop/render/intermediate/IFSerializer.java
status.xml

index f8882f1e0eb5f3ea608bc8fabec263e6d4f7ea81..0a20437c007095accb1c3c329dce033d890d2bde 100644 (file)
@@ -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);
index 773666c4c8ce8a4bf1972a6ef7cc4ae9d28e45f4..571bf9734234667f6f1940fc185273715e1ea7a2 100644 (file)
@@ -59,6 +59,9 @@
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Renderers" dev="CB" type="fix" fixes-bug="FOP-2215" due-to="Simon Steiner">
+       NullPointerException when generating IF with fox:external-document 
+      </action>        
       <action context="Renderers" dev="GA" type="add" fixes-bug="FOP-2206" due-to="Luis Bernardo">
        Add support for CS placement and escapement data in PS renderer.
       </action>