You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2002/05/16 18:19:50 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/axes NodeSequence.java

mmidy       02/05/16 09:19:50

  Modified:    java/src/org/apache/xpath/axes NodeSequence.java
  Log:
  Fix for NullPointerException in SQL extension stuff. Just check for a NULL iterator...
  
  Revision  Changes    Path
  1.3       +3 -1      xml-xalan/java/src/org/apache/xpath/axes/NodeSequence.java
  
  Index: NodeSequence.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/NodeSequence.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NodeSequence.java	22 Mar 2002 01:04:43 -0000	1.2
  +++ NodeSequence.java	16 May 2002 16:19:49 -0000	1.3
  @@ -314,7 +314,9 @@
       	}
       }
       
  -        
  +  if (null == m_iter)
  +    return DTM.NULL;
  +  
    	int next = m_iter.nextNode();
       if(DTM.NULL != next)
       {
  
  
  

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