what does it mean when I get just 1 JSON object in...
# android
o
what does it mean when I get just 1 JSON object in my response and doing
firstOrNull
or
find
on it produces exception index out of bounds?
v
Attach a debugger and find out why it is not behaving as you expect by inspecting the situation. 😉
o
yea I thought so, it just doesnt make sense to be like that
👍🏻
v
Maybe it makes more sense if you see the state of the actual instances in the debugger and it turns out to not be like you imagine it to be
o
yea it isnt even firstOrNull that’s doing this, the call itself is throwing that, got it
haha, so silly turned out
v
👌