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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 87e4e6be16 No need to notify if there was no entry to remove
87e4e6be16 is described below

commit 87e4e6be166a86beae368b3479021068b5f841ac
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