Skip to content

Commit

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

### Motivation

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

### Modifications

Small modification: add a null check in BKStateStoreImpl.java:[line 175]
  • Loading branch information
Jason918 committed Jun 25, 2021
1 parent b7f8de4 commit 296ba76
Showing 1 changed file with 3 additions and 1 deletion.
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 296ba76

Please sign in to comment.