Fix NullPointerException in clone() method when the Term is null.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Scott Ganyo 2001-10-11 15:14:14 +00:00
parent 4e72b89a90
commit e9161ac365
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ final class SegmentTermEnum extends TermEnum implements Cloneable {
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;
}