From: Jeremias Maerki Date: Mon, 8 Aug 2005 14:23:27 +0000 (+0000) Subject: Don't fail on empty lists. X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=20597bb94fe63fa307ebce5947a4ae3f932a3cad;p=xmlgraphics-fop.git 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 --- 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()) {