aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-01-24 14:15:36 +0000
committerJeremias Maerki <jeremias@apache.org>2006-01-24 14:15:36 +0000
commitae5491af3cc873c6fa366674dd214450397adef6 (patch)
treed94aea01d4db019c36a7b48c5fa40041db68263c /src
parent9ded99b802da5240a8c69066b019cb2d9dc99a73 (diff)
downloadxmlgraphics-fop-ae5491af3cc873c6fa366674dd214450397adef6.tar.gz
xmlgraphics-fop-ae5491af3cc873c6fa366674dd214450397adef6.zip
Fix for NPE when the AWT Viewer is used with an area tree file as input.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-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();