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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to