SOLR-11879: moved the peek() call inside the for loop

This commit is contained in:
Noble Paul 2018-01-30 18:25:48 +11:00
parent c56d774eb6
commit e2a5d46b9c
1 changed files with 1 additions and 1 deletions

View File

@ -103,8 +103,8 @@ public class JavabinLoader extends ContentStreamLoader {
} }
}; };
FastInputStream in = FastInputStream.wrap(stream); FastInputStream in = FastInputStream.wrap(stream);
if (in.peek() == -1) return;
for (; ; ) { for (; ; ) {
if (in.peek() == -1) return;
try { try {
update = new JavaBinUpdateRequestCodec().unmarshal(in, handler); update = new JavaBinUpdateRequestCodec().unmarshal(in, handler);
} catch (EOFException e) { } catch (EOFException e) {