(tomcat) branch 10.1.x updated: No need to notify if there was no entry to remove
[email protected] Fri, 10 Jul 2026 07:41:42 +0000
| Newsgroups | gmane.comp.jakarta.tomcat.devel |
|---|---|
| Message-ID | <178366930232.2389142.16889483304172324563@gitbox3-he-fi.apache.org> |
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 07323ffd7c No need to notify if there was no entry to remove
07323ffd7c is described below
commit 07323ffd7caff5f3583065f342770cf2c7ead70f
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 4b61a42f26..5a93cb0118 100644
--- a/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
+++ b/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
@@ -1183,7 +1183,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());