mirror of https://github.com/apache/lucene.git
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:
parent
4e72b89a90
commit
e9161ac365
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue