Fix small initialization bug in Token.copyTo()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@807028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-08-23 23:06:00 +00:00
parent 4745c8db05
commit ec49cc2527
1 changed files with 1 additions and 0 deletions

View File

@ -867,6 +867,7 @@ public class Token extends AttributeImpl
to.payload = (Payload) payload.clone();
}
} else {
initTermBuffer();
((TermAttribute) target).setTermBuffer(termBuffer, 0, termLength);
((OffsetAttribute) target).setOffset(startOffset, endOffset);
((PositionIncrementAttribute) target).setPositionIncrement(positionIncrement);