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/16 20:07:18 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMTreeWalkerImpl.cpp

tng         2003/01/16 11:07:18

  Modified:    c/src/xercesc/dom/impl DOMTreeWalkerImpl.cpp
  Log:
  DOM Fix: set treewalker current node to null should throw a NOT_SUPPORTED_ERR exception.
  
  Revision  Changes    Path
  1.6       +4 -1      xml-xerces/c/src/xercesc/dom/impl/DOMTreeWalkerImpl.cpp
  
  Index: DOMTreeWalkerImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMTreeWalkerImpl.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DOMTreeWalkerImpl.cpp	4 Nov 2002 15:07:34 -0000	1.5
  +++ DOMTreeWalkerImpl.cpp	16 Jan 2003 19:07:18 -0000	1.6
  @@ -142,6 +142,9 @@
   /** Return the current Node. */
   void DOMTreeWalkerImpl::setCurrentNode (DOMNode* node) {
   
  +    if (!node)
  +        throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
  +
       fCurrentNode = node;
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org