Skip to content

Commit

Permalink
fix apache#10781 Build failure because of spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Haiting committed Jun 3, 2021
1 parent 301a764 commit 882e57c
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 882e57c

Please sign in to comment.