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]

(cherry picked from commit 296ba76)
  • Loading branch information
Jason918 authored and codelipenghui committed Jul 7, 2021
1 parent b58f643 commit 706f138
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 706f138

Please sign in to comment.