You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2006/01/24 15:15:42 UTC

svn commit: r371919 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java

Author: jeremias
Date: Tue Jan 24 06:15:36 2006
New Revision: 371919

URL: http://svn.apache.org/viewcvs?rev=371919&view=rev
Log:
Fix for NPE when the AWT Viewer is used with an area tree file as input.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java?rev=371919&r1=371918&r2=371919&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java Tue Jan 24 06:15:36 2006
@@ -105,7 +105,9 @@
      * @param original the original PageViewport to copy from
      */
     public PageViewport(PageViewport original) {
-        this.extensionAttachments = new java.util.ArrayList(original.extensionAttachments);
+        if (original.extensionAttachments != null) {
+            this.extensionAttachments = new java.util.ArrayList(original.extensionAttachments);
+        }
         this.pageNumber = original.pageNumber;
         this.pageNumberString = original.pageNumberString;
         this.page = (Page)original.page.clone();



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org