kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes NPE with the cached state.
rodzic
37fdb8b2aa
commit
0182011487
|
@ -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
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue