]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Null pointer check added to code, to stop NPE error (unsure if other problems
authorGlen Mazza <gmazza@apache.org>
Fri, 16 Jul 2004 10:52:02 +0000 (10:52 +0000)
committerGlen Mazza <gmazza@apache.org>
Fri, 16 Jul 2004 10:52:02 +0000 (10:52 +0000)
also present).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197795 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java

index f8535d5910d482fd3648a53e7ef0d15e26280cde..97403226988599d78ad9335b12e30e874eac81e7 100644 (file)
@@ -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);