mirror of https://github.com/apache/lucene.git
SOLR-1056 -- Fix ending condition for ClobTransformer
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@751993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15a9d6b543
commit
cdbb5216ec
|
@ -71,7 +71,7 @@ public class ClobTransformer extends Transformer {
|
||||||
char[] buf = new char[1024];
|
char[] buf = new char[1024];
|
||||||
int len;
|
int len;
|
||||||
try {
|
try {
|
||||||
while ((len = reader.read(buf)) != 0) {
|
while ((len = reader.read(buf)) != -1) {
|
||||||
sb.append(buf, 0, len);
|
sb.append(buf, 0, len);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue