Skip to content

Commit eb21b92

Browse files
committed
Bug 38085476 - [37861691->14.1.1.0.23] cache service terminated due to unhandled NullPointerException thrown in RWBM isEvictable() (14.1.1.0 cl 116890 --> 14.1.1.0 CE)
[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.1.0/": change = 116927]
1 parent b17564d commit eb21b92

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

prj/coherence-core/src/main/java/com/tangosol/net/cache/ReadWriteBackingMap.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -7146,7 +7146,10 @@ protected Iterator iterateKeys()
71467146
public boolean isEvictable(
71477147
ConfigurableCacheMap.Entry cacheEntry)
71487148
{
7149-
return m_queueWrite.accelerateEntryRipe((Binary) cacheEntry.getKey());
7149+
WriteQueue writeQueue = m_queueWrite;
7150+
7151+
// COH-32208 - return false if writeQueue is null; writeQueue may be null if the RWBM is being released, e.g. truncate()
7152+
return writeQueue == null ? false : writeQueue.accelerateEntryRipe((Binary) cacheEntry.getKey());
71507153
}
71517154
};
71527155

0 commit comments

Comments
 (0)