You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2003/01/29 17:22:57 UTC
cvs commit: xml-xerces/c/src/xercesc/dom/deprecated AttrImpl.cpp ParentNode.cpp
tng 2003/01/29 08:22:57
Modified: c/src/xercesc/dom/deprecated AttrImpl.cpp ParentNode.cpp
Log:
[Bug 6271] Invalid Precondition Test. By Lenny Hoffman.
Revision Changes Path
1.4 +2 -2 xml-xerces/c/src/xercesc/dom/deprecated/AttrImpl.cpp
Index: AttrImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/AttrImpl.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AttrImpl.cpp 4 Nov 2002 15:04:44 -0000 1.3
+++ AttrImpl.cpp 29 Jan 2003 16:22:57 -0000 1.4
@@ -571,7 +571,7 @@
DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,
null);
}
- if (oldChild != null && oldChild->getParentNode() != this) {
+ if (oldChild == null || oldChild->getParentNode() != this) {
throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
}
}
1.4 +2 -2 xml-xerces/c/src/xercesc/dom/deprecated/ParentNode.cpp
Index: ParentNode.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/ParentNode.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ParentNode.cpp 4 Nov 2002 15:04:44 -0000 1.3
+++ ParentNode.cpp 29 Jan 2003 16:22:57 -0000 1.4
@@ -382,7 +382,7 @@
DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,
null);
}
- if (oldChild != null && oldChild->getParentNode() != this) {
+ if (oldChild == null || oldChild->getParentNode() != this) {
throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org