This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch Changes_to_Classic_Quantiles
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
The following commit(s) were added to refs/heads/Changes_to_Classic_Quantiles
by this push:
new 70f181db Fix NPE.
70f181db is described below
commit 70f181dbe4581eab16b19e4849af9d32754543c5
Author: Lee Rhodes <[email protected]>
AuthorDate: Tue Aug 16 13:19:03 2022 -0700
Fix NPE.
---
src/main/java/org/apache/datasketches/quantiles/ItemsUnion.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/datasketches/quantiles/ItemsUnion.java
b/src/main/java/org/apache/datasketches/quantiles/ItemsUnion.java
index 5b047acc..c2bc718b 100644
--- a/src/main/java/org/apache/datasketches/quantiles/ItemsUnion.java
+++ b/src/main/java/org/apache/datasketches/quantiles/ItemsUnion.java
@@ -45,7 +45,7 @@ public final class ItemsUnion<T> {
maxK_ = maxK;
comparator_ = comparator;
gadget_ = gadget;
- gadget_.classicQisSV = null;
+ if (gadget_!= null) { gadget_.classicQisSV = null; }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]