Skip to content

Commit

Permalink
[apache#1546] fix(spark): NPE cound happen before uncompressing after a…
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyma committed Feb 27, 2024
1 parent a73dcb9 commit c6d73ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private int uncompress(CompressedShuffleBlock rawBlock, ByteBuffer rawData) {
|| !isSameMemoryType(uncompressedData, rawData)) {

if (LOG.isDebugEnabled()) {
if (!isSameMemoryType(uncompressedData, rawData)) {
if (uncompressedData != null && !isSameMemoryType(uncompressedData, rawData)) {
LOG.debug(
"This should not happen that the temporary uncompressed data's memory type(isDirect:{}) "
+ "is not same with fetched data buffer(isDirect:{})",
Expand Down

0 comments on commit c6d73ce

Please sign in to comment.