diff options
author | Manuel Mall <manuel@apache.org> | 2006-06-26 14:08:29 +0000 |
---|---|---|
committer | Manuel Mall <manuel@apache.org> | 2006-06-26 14:08:29 +0000 |
commit | 3cd0a99a821eae6c76e321e934956b45bb4fdee0 (patch) | |
tree | 95dedbcb51ad9615226f72962d68591c40cb9b0d /src/sandbox | |
parent | c0510002ca15d6a05a8f1768e89eeedaaae2c0ff (diff) | |
download | xmlgraphics-fop-3cd0a99a821eae6c76e321e934956b45bb4fdee0.tar.gz xmlgraphics-fop-3cd0a99a821eae6c76e321e934956b45bb4fdee0.zip |
Fixed possible NPE in AFP Renderer
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox')
-rw-r--r-- | src/sandbox/org/apache/fop/render/afp/AFPRenderer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sandbox/org/apache/fop/render/afp/AFPRenderer.java b/src/sandbox/org/apache/fop/render/afp/AFPRenderer.java index 2a514d1a1..91f235cb1 100644 --- a/src/sandbox/org/apache/fop/render/afp/AFPRenderer.java +++ b/src/sandbox/org/apache/fop/render/afp/AFPRenderer.java @@ -1556,7 +1556,8 @@ public class AFPRenderer extends AbstractPathOrientedRenderer { private void renderPageObjectExtensions(PageViewport page) { _pageSegmentsMap = null; - if (page.getExtensionAttachments().size() > 0) { + if (page.getExtensionAttachments() != null + && page.getExtensionAttachments().size() > 0) { //Extract all AFPPageSetup instances from the attachment list on the s-p-m Iterator i = page.getExtensionAttachments().iterator(); while (i.hasNext()) { |