Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Small fix for TestPayloads testcase.

Michael Busch869aabff8fed
diff --git a/src/test/org/apache/lucene/index/TestPayloads.java b/src/test/org/apache/lucene/index/TestPayloads.java
index 2b5687114f0..9a844b02e37 100644
--- a/src/test/org/apache/lucene/index/TestPayloads.java
+++ b/src/test/org/apache/lucene/index/TestPayloads.java
@@ -532,6 +532,7 @@ public class TestPayloads extends LuceneTestCase {
public boolean incrementToken() throws IOException {
if (!first) return false;
+ first = false;
termAtt.setTermBuffer(term);
payloadAtt.setPayload(new Payload(payload));
return true;