From 8f8e84dc39daa91ba84b95635e68b6afa9e3751e Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Fri, 16 Jul 2004 10:52:02 +0000 Subject: [PATCH] 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 --- .../org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5