This is an automated email from the ASF dual-hosted git repository.

zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 36bb502ea38 IGNITE-29000 NPE can be raised from 
GridCachePartitionExchangeManager#lastAffinityChangedTopologyVersion (#13504)
36bb502ea38 is described below

commit 36bb502ea3818876f3888c68738f4ac2b4ed6923
Author: Evgeniy Stanilovskiy <[email protected]>
AuthorDate: Mon Aug 24 12:02:40 2026 +0300

    IGNITE-29000 NPE can be raised from 
GridCachePartitionExchangeManager#lastAffinityChangedTopologyVersion (#13504)
---
 .../processors/cache/GridCachePartitionExchangeManager.java        | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
index 8494d8f57db..9dcc18d5e05 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
@@ -1052,11 +1052,14 @@ public class GridCachePartitionExchangeManager<K, V> 
extends GridCacheSharedMana
     }
 
     /**
-     *
      * @param topVer Topology version.
-     * @return Last topology version before the provided one when affinity was 
modified.
+     * @return Last topology version before the provided one when affinity was 
modified or {@link AffinityTopologyVersion#NONE}
+     * if {@code topVer} is null.
      */
     public AffinityTopologyVersion 
lastAffinityChangedTopologyVersion(AffinityTopologyVersion topVer) {
+        if (topVer == null)
+            return NONE;
+
         if (topVer.topologyVersion() <= 0)
             return topVer;
 

Reply via email to