From 20597bb94fe63fa307ebce5947a4ae3f932a3cad Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 8 Aug 2005 14:23:27 +0000 Subject: [PATCH] Don't fail on empty lists. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock@230804 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/logging/LoggingElementListObserver.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/java/org/apache/fop/logging/LoggingElementListObserver.java b/test/java/org/apache/fop/logging/LoggingElementListObserver.java index 6bc9933a0..255cff900 100644 --- a/test/java/org/apache/fop/logging/LoggingElementListObserver.java +++ b/test/java/org/apache/fop/logging/LoggingElementListObserver.java @@ -44,6 +44,10 @@ public class LoggingElementListObserver implements Observer { } log.debug(" "); log.debug("ElementList: category=" + category + ", id=" + id); + if (elementList == null) { + log.debug("<>"); + return; + } ListIterator tempIter = elementList.listIterator(); KnuthElement temp; while (tempIter.hasNext()) { -- 2.39.5