cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timm, Sean" <ST...@mailgo.com>
Subject [PATCH] Fix for Null Pointer Exception during call to Utils.getAl lPIs
Date Mon, 24 Jan 2000 08:18:49 GMT
Index: Utils.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/Utils.java,v
retrieving revision 1.5
diff -u -r1.5 Utils.java
--- Utils.java	2000/01/23 23:14:11	1.5
+++ Utils.java	2000/01/24 08:13:50
@@ -88,7 +88,10 @@
             if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) {
                 if (((ProcessingInstruction)
node).getTarget().equals(name)) {
                     pis.addElement(node);
-                    if (remove) node.getParentNode().removeChild(node);
+                    if (remove) {
+                        node.getParentNode().removeChild(node);
+                        i--;
+                    }
                 }
             }
         }

Mime
View raw message