diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2006-03-06 00:18:03 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2006-03-06 00:18:03 +0000 |
commit | 8b9f42a3899a365d54588f0a1e3b0fd8c1d45018 (patch) | |
tree | 4d88340318dd4b4ecc6182a40a6d58507aaa40f4 /src | |
parent | f255053959e93876cb9345d905c0b1846c84959d (diff) | |
download | xmlgraphics-fop-8b9f42a3899a365d54588f0a1e3b0fd8c1d45018.tar.gz xmlgraphics-fop-8b9f42a3899a365d54588f0a1e3b0fd8c1d45018.zip |
Fix for NPE in case of empty instream-foreign-object
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@383439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/InstreamForeignObject.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java index ce437b985..8df738014 100644 --- a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java +++ b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java @@ -61,7 +61,7 @@ public class InstreamForeignObject extends AbstractGraphics { * @see org.apache.fop.fo.FONode#endOfNode */ protected void endOfNode() throws FOPException { - if (childNodes.size() != 1) { + if (childNodes == null || childNodes.size() != 1) { missingChildElementError("one (1) non-XSL namespace child"); } } |