Browse Source

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
tags/fop-0_92-beta
Andreas L. Delmelle 18 years ago
parent
commit
8b9f42a389
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/java/org/apache/fop/fo/flow/InstreamForeignObject.java

+ 1
- 1
src/java/org/apache/fop/fo/flow/InstreamForeignObject.java View File

@@ -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");
}
}

Loading…
Cancel
Save