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/10/17 10:29:02 UTC

svn commit: r325859 - /xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java

Author: jeremias
Date: Mon Oct 17 01:28:57 2005
New Revision: 325859

URL: http://svn.apache.org/viewcvs?rev=325859&view=rev
Log:
Fixes NPE when test:assert is used as direct child of an fo:table.

Modified:
    xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java

Modified: xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java?rev=325859&r1=325858&r2=325859&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java (original)
+++ xmlgraphics/fop/branches/Temp_SpaceResolution/src/java/org/apache/fop/fo/flow/Table.java Mon Oct 17 01:28:57 2005
@@ -24,9 +24,7 @@
 import org.xml.sax.Locator;
 
 import org.apache.fop.apps.FOPException;
-import org.apache.fop.datatypes.Numeric;
 import org.apache.fop.fo.FONode;
-import org.apache.fop.fo.FObj;
 import org.apache.fop.fo.PropertyList;
 import org.apache.fop.fo.StaticPropertyList;
 import org.apache.fop.fo.ValidationException;
@@ -217,11 +215,11 @@
      * @see org.apache.fop.fo.FONode#addChildNode(FONode)
      */
     protected void addChildNode(FONode child) throws FOPException {
-        if (child.getName().equals("fo:table-column")) {
+        if ("fo:table-column".equals(child.getName())) {
             addColumnNode((TableColumn) child);
-        } else if (child.getName().equals("fo:table-footer")) {
+        } else if ("fo:table-footer".equals(child.getName())) {
             tableFooter = (TableBody)child;
-        } else if (child.getName().equals("fo:table-header")) {
+        } else if ("fo:table-header".equals(child.getName())) {
             tableHeader = (TableBody)child;
         } else {
             // add bodies



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