]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Don't fail on empty lists.
authorJeremias Maerki <jeremias@apache.org>
Mon, 8 Aug 2005 14:23:27 +0000 (14:23 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 8 Aug 2005 14:23:27 +0000 (14:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock@230804 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/logging/LoggingElementListObserver.java

index 6bc9933a01ab08d32ba64299f6e340427c5ac673..255cff900979e88308518273e4e7cdbcb34b0e45 100644 (file)
@@ -44,6 +44,10 @@ public class LoggingElementListObserver implements Observer {
         }
         log.debug(" ");
         log.debug("ElementList: category=" + category + ", id=" + id);
+        if (elementList == null) {
+            log.debug("<<empty list>>");
+            return;
+        }
         ListIterator tempIter = elementList.listIterator();
         KnuthElement temp;
         while (tempIter.hasNext()) {