Skip to content

Commit

Permalink
Merge 1e81a22 into f160c0b
Browse files Browse the repository at this point in the history
  • Loading branch information
yuripourre committed Mar 26, 2018
2 parents f160c0b + 1e81a22 commit 56ca765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void getImageBytes(ByteBuffer target) {
int minSize = size.width * size.height * 3;
int curSize = target.remaining();

if (minSize < curSize) {
if (minSize > curSize) {
throw new IllegalArgumentException(String.format("Not enough remaining space in target buffer (%d necessary vs %d remaining)", minSize, curSize));
}

Expand Down

0 comments on commit 56ca765

Please sign in to comment.