Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ public Long doIO(Reporter reporter,
InputStream in = (InputStream)this.stream;
long actualSize = 0;
while (actualSize < totalSize) {
if(bufferSize <= 0)
throw new IllegalArgumentException("buffer size should be positive integer.");
int curSize = in.read(buffer, 0, bufferSize);
if(curSize < 0) break;
actualSize += curSize;
Expand Down