I'm checking this in to classpath and gcj 4.1.
This is the patch from PR 25426. On irc Chris Burdess said it looked
reasonable.
Tom
2005-12-15 Caolan McNamara <[EMAIL PROTECTED]>
PR classpath/25426:
* gnu/xml/dom/DomNode.java (detach): Check whether current is
already null.
Index: gnu/xml/dom/DomNode.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/dom/DomNode.java,v
retrieving revision 1.7
diff -u -r1.7 DomNode.java
--- gnu/xml/dom/DomNode.java 2 Jul 2005 20:32:15 -0000 1.7
+++ gnu/xml/dom/DomNode.java 15 Dec 2005 18:26:40 -0000
@@ -1271,7 +1271,8 @@
void detach()
{
- current.detach();
+ if (current != null)
+ current.detach();
current = null;
DomNode.this.removeEventListener("DOMNodeInserted", this, true);
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches