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

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 170573f493 No need to notify if there was no entry to remove
170573f493 is described below

commit 170573f493f6c73ff9180e2a1b220cd719a94922
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jul 10 08:41:07 2026 +0100

    No need to notify if there was no entry to remove
---
 java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
b/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
index 9fbd52250b..c5dcdd2d2e 100644
--- a/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
+++ b/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
@@ -1179,7 +1179,7 @@ public abstract class AbstractReplicatedMap<K, V>
         MapEntry<K,V> entry = innerMap.remove(key);
 
         try {
-            if (getMapMembers().length > 0 && notify) {
+            if (getMapMembers().length > 0 && notify && entry != null) {
                 MapMessage msg = new MapMessage(getMapContextName(), 
MapMessage.MSG_REMOVE, false, (Serializable) key,
                         null, null, null, null);
                 getChannel().send(getMapMembers(), msg, 
getChannelSendOptions());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to