hey, we're seeing `Cannot invoke "java.util.Map.ge...
# getting-started
y
hey, we're seeing
Cannot invoke "java.util.Map.get(Object)" because the return value of foo() is null
very naively:
foo()
is a Kotlin function which returns
List<Bar>
, so under what conditions could it even return null?
h
Once such condition is accessing a field before instantiation is complete: https://pl.kotl.in/vLZFH-OIz
y
that is a good guess but that doesn't seem to be it in this case. especially since this code path almost always works a coworker said "it could be OOM issues" and kinda left it there - is it true that OOM could lead to something like this?
h
Out Of Memory? I don't see how that could be the cause
1