dbertoni    00/06/26 12:50:05

  Modified:    c/src/XPath FunctionLocalName.hpp
  Log:
  More error checking.
  
  Revision  Changes    Path
  1.7       +4 -1      xml-xalan/c/src/XPath/FunctionLocalName.hpp
  
  Index: FunctionLocalName.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionLocalName.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FunctionLocalName.hpp     2000/06/26 00:21:59     1.6
  +++ FunctionLocalName.hpp     2000/06/26 19:50:04     1.7
  @@ -117,7 +117,10 @@
   
                if (theSize == 0)
                {
  -                     assert(context != 0);
  +                     if (context == 0)
  +                     {
  +                             executionContext.error("The local-name() 
function requires a non-null context node!");
  +                     }
   
                        theData = executionContext.getLocalNameOfNode(*context);
                }
  
  
  

Reply via email to