mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
Protect against null RemovalListener in setter
This commit is contained in:
parent
0fb908178d
commit
1f61384988
@ -122,6 +122,7 @@ public class Cache<K, V> {
|
||||
}
|
||||
|
||||
void setRemovalListener(RemovalListener<K, V> removalListener) {
|
||||
Objects.requireNonNull(removalListener);
|
||||
this.removalListener = removalListener;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user