You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2002/08/08 00:13:57 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/objects XRTreeFrag.java

zongaro     2002/08/07 15:13:56

  Modified:    java/src/org/apache/xpath/objects XRTreeFrag.java
  Log:
  Applying patch for Bug 9683 for Morris Kwan.  If XRTreeFrag is constructed
  without respect to an XPathContext, the object() method should defer to the
  parent class's object() method to convert the fragment to the appropriate
  representation.
  
  Revision  Changes    Path
  1.25      +4 -1      xml-xalan/java/src/org/apache/xpath/objects/XRTreeFrag.java
  
  Index: XRTreeFrag.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XRTreeFrag.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- XRTreeFrag.java	18 Jun 2002 15:31:02 -0000	1.24
  +++ XRTreeFrag.java	7 Aug 2002 22:13:56 -0000	1.25
  @@ -134,7 +134,10 @@
      */
     public Object object()
     {
  -    return new org.apache.xml.dtm.ref.DTMNodeIterator((DTMIterator)(new org.apache.xpath.NodeSetDTM(m_dtmRoot, m_xctxt.getDTMManager())));
  +    if (m_xctxt != null)
  +      return new org.apache.xml.dtm.ref.DTMNodeIterator((DTMIterator)(new org.apache.xpath.NodeSetDTM(m_dtmRoot, m_xctxt.getDTMManager())));
  +    else
  +      return super.object();
     }
     
     /**
  
  
  

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