Skip to content

Commit

Permalink
fix apache#10781 Build failure because of spotbugs (apache#10792)
Browse files Browse the repository at this point in the history
Fixes apache#10781 

### Motivation

solving build failure case causing by spotbugs issue which is explained in apache#10781 

### Modifications

Small modification: add a null check in BKStateStoreImpl.java:[line 175]
  • Loading branch information
Jason918 authored and ciaocloud committed Oct 16, 2021
1 parent 6e0a537 commit 9ab07e5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public CompletableFuture<ByteBuffer> getAsync(String key) {
}
return null;
} finally {
ReferenceCountUtil.safeRelease(data);
if (data != null) {
ReferenceCountUtil.safeRelease(data);
}
}
}
);
Expand Down

0 comments on commit 9ab07e5

Please sign in to comment.