Skip to content

Commit

Permalink
IGNITE-23114 Fix sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skorotkov committed Oct 3, 2024
1 parent 65ae0a8 commit 5f31d41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class JdbcBlobMemoryStorage implements JdbcBlobStorage {

int remaining = cnt;

while (remaining > 0 && pos.getPos() < totalCnt) {
while (remaining > 0 && pos.getPos() < totalCnt && buf != null) {
int toCopy = Math.min(remaining, buf.length - getBufPos(pos));

if (toCopy > totalCnt - pos.getPos())
Expand Down

0 comments on commit 5f31d41

Please sign in to comment.