Skip to content
Merged
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 @@ -178,7 +178,8 @@ protected InputStream openSlice(int slice) throws IOException {
// Reset
input.reset();
int slicesOpenedAfterReset = streamsOpened.size();
assert moreBytes > 0 || mark == 0 || slicesOpenedAfterReset == slicesOpenedAtMark : "Reset at mark should not re-open slices";
assert moreBytes > 0 || mark == 0 || mark == bytes.length || slicesOpenedAfterReset == slicesOpenedAtMark
: "Reset at mark should not re-open slices";

// Read all remaining bytes, which should be the bytes from mark up to the end
final int remainingBytes = bytes.length - mark;
Expand Down