You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/08 16:23:31 UTC

svn commit: r230804 - /xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java

Author: jeremias
Date: Mon Aug  8 07:23:27 2005
New Revision: 230804

URL: http://svn.apache.org/viewcvs?rev=230804&view=rev
Log:
Don't fail on empty lists.

Modified:
    xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java

Modified: xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java?rev=230804&r1=230803&r2=230804&view=diff
==============================================================================
--- xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java (original)
+++ xmlgraphics/fop/branches/inlineblock/test/java/org/apache/fop/logging/LoggingElementListObserver.java Mon Aug  8 07:23:27 2005
@@ -44,6 +44,10 @@
         }
         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()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org