This is an automated email from the ASF dual-hosted git repository.
zuston pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new 9338529ba [#2619] fix(spark): NPE in ShuffleReadTimes.merge (#2621)
9338529ba is described below
commit 9338529baec1086a46220c9b6090623d009c441d
Author: Junfan Zhang <[email protected]>
AuthorDate: Fri Sep 19 14:17:35 2025 +0800
[#2619] fix(spark): NPE in ShuffleReadTimes.merge (#2621)
### What changes were proposed in this pull request?
Fix the NPE in `ShuffleReadTimes.merge`
### Why are the changes needed?
fix #2619
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Neen't
---
common/src/main/java/org/apache/uniffle/common/ShuffleReadTimes.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/common/src/main/java/org/apache/uniffle/common/ShuffleReadTimes.java
b/common/src/main/java/org/apache/uniffle/common/ShuffleReadTimes.java
index 7be409fc0..dcc3cf539 100644
--- a/common/src/main/java/org/apache/uniffle/common/ShuffleReadTimes.java
+++ b/common/src/main/java/org/apache/uniffle/common/ShuffleReadTimes.java
@@ -64,6 +64,9 @@ public class ShuffleReadTimes {
}
public void merge(ShuffleReadTimes other) {
+ if (other == null) {
+ return;
+ }
this.fetch += other.fetch;
this.crc += other.crc;
this.copy += other.copy;