diff options
author | Glen Mazza <gmazza@apache.org> | 2004-07-16 10:52:02 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-07-16 10:52:02 +0000 |
commit | 8f8e84dc39daa91ba84b95635e68b6afa9e3751e (patch) | |
tree | 4eb16092d1cc9dda0d76de9d8a147735688aefa8 /src/java/org/apache | |
parent | 4cd2247565deba8992baa983ba5622620fa6bb5e (diff) | |
download | xmlgraphics-fop-8f8e84dc39daa91ba84b95635e68b6afa9e3751e.tar.gz xmlgraphics-fop-8f8e84dc39daa91ba84b95635e68b6afa9e3751e.zip |
Null pointer check added to code, to stop NPE error (unsure if other problems
also present).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197795 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java index f8535d591..974032269 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java @@ -188,7 +188,9 @@ public class RtfListTable extends RtfContainer { writeOneAttributeNS(LIST_INDENT, attrib.getValue(LIST_INDENT)); RtfListItem item = (RtfListItem)list.getChildren().get(0); - item.getRtfListStyle().writeLevelGroup(this); + if (item != null) { + item.getRtfListStyle().writeLevelGroup(this); + } writeGroupMark(false); |