lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottga...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentTermEnum.java
Date Thu, 11 Oct 2001 15:14:14 GMT
scottganyo    01/10/11 08:14:14

  Modified:    src/java/org/apache/lucene/index SegmentTermEnum.java
  Log:
  Fix NullPointerException in clone() method when the Term is null.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermEnum.java
  
  Index: SegmentTermEnum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermEnum.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SegmentTermEnum.java	2001/09/18 16:29:54	1.1
  +++ SegmentTermEnum.java	2001/10/11 15:14:14	1.2
  @@ -88,7 +88,7 @@
   
       clone.input = (InputStream)input.clone();
       clone.termInfo = new TermInfo(termInfo);
  -    clone.growBuffer(term.text.length());
  +    if (term != null) clone.growBuffer(term.text.length());
   
       return clone;
     }
  
  
  

Mime
View raw message