lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentTermPositions.java
Date Fri, 08 Feb 2002 22:52:03 GMT
cutting     02/02/08 14:52:03

  Modified:    src/java/org/apache/lucene/index SegmentTermPositions.java
  Log:
  Fixed NullPointerException while performing phrase searches.
  
  Revision  Changes    Path
  1.3       +4 -1      jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermPositions.java
  
  Index: SegmentTermPositions.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermPositions.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SegmentTermPositions.java	21 Jan 2002 17:07:23 -0000	1.2
  +++ SegmentTermPositions.java	8 Feb 2002 22:52:03 -0000	1.3
  @@ -71,7 +71,10 @@
   
     final void seek(TermInfo ti) throws IOException {
       super.seek(ti);
  -    proxStream.seek(ti.proxPointer);
  +    if (ti != null)
  +      proxStream.seek(ti.proxPointer);
  +    else
  +      proxCount = 0;
     }
   
     public final void close() throws IOException {
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message