You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/12/12 20:23:30 UTC
cvs commit: xml-xerces/c/src/dom ElementImpl.cpp
lehors 00/12/12 11:23:30
Modified: c/src/dom ElementImpl.cpp
Log:
null pointer bug - patch from Gareth Reakes
Revision Changes Path
1.27 +2 -2 xml-xerces/c/src/dom/ElementImpl.cpp
Index: ElementImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/dom/ElementImpl.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ElementImpl.cpp 2000/08/17 22:47:09 1.26
+++ ElementImpl.cpp 2000/12/12 19:23:29 1.27
@@ -55,7 +55,7 @@
*/
/*
- * $Id: ElementImpl.cpp,v 1.26 2000/08/17 22:47:09 lehors Exp $
+ * $Id: ElementImpl.cpp,v 1.27 2000/12/12 19:23:29 lehors Exp $
*/
#include "DeepNodeListImpl.hpp"
@@ -340,7 +340,7 @@
AttrImpl *ElementImpl::getAttributeNodeNS(const DOMString &fNamespaceURI,
const DOMString &fLocalName)
{
- return (AttrImpl *)(attributes->getNamedItemNS(fNamespaceURI, fLocalName));
+ return (attributes == 0) ? null : (AttrImpl *)(attributes->getNamedItemNS(fNamespaceURI, fLocalName));
}