Fixes NPE with the cached state.

pull/819/head
Vitor Pamplona 2024-03-25 20:11:23 -04:00
rodzic 37fdb8b2aa
commit 0182011487
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -53,7 +53,9 @@ abstract class GenericBaseCache<K, V>(capacity: Int) : CachedState<K, V> {
val v = compute(k)
cache.put(k, v)
if (v != null) {
cache.put(k, v)
}
return v
}