You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2003/07/29 20:24:06 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/dom DocumentImpl.java

elena       2003/07/29 11:24:06

  Modified:    java/src/org/apache/xerces/dom DocumentImpl.java
  Log:
  Patch from Neil Delima: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18678
  Reviewed by Peter McCracken.
  
  Revision  Changes    Path
  1.78      +7 -1      xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java
  
  Index: DocumentImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- DocumentImpl.java	8 May 2003 19:52:40 -0000	1.77
  +++ DocumentImpl.java	29 Jul 2003 18:24:05 -0000	1.78
  @@ -250,6 +250,12 @@
                                              NodeFilter filter,
                                              boolean entityReferenceExpansion)
       {
  +        
  +        if (root == null) {
  +                  String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
  +                  throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
  +        }
  +
           NodeIterator iterator = new NodeIteratorImpl(this,
                                                        root,
                                                        whatToShow,
  
  
  

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