Skip to content

Commit

Permalink
check null
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Mar 12, 2024
1 parent 898737a commit d026cfd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ private long getMemoryUsage() {
for (SpillSorter sorter : spillingSorters) {
totalPageSize += sorter.getMemoryUsage();
}
totalPageSize += activeSpillSorter.getMemoryUsage();
if (activeSpillSorter != null) {
totalPageSize += activeSpillSorter.getMemoryUsage();
}
return totalPageSize;
}

Expand Down

0 comments on commit d026cfd

Please sign in to comment.