aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/PageViewport.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/area/PageViewport.java')
-rw-r--r--src/java/org/apache/fop/area/PageViewport.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/PageViewport.java b/src/java/org/apache/fop/area/PageViewport.java
index 51c354b4d..88a52dc7a 100644
--- a/src/java/org/apache/fop/area/PageViewport.java
+++ b/src/java/org/apache/fop/area/PageViewport.java
@@ -105,7 +105,9 @@ public class PageViewport implements Resolvable, Cloneable {
* @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();