Join Slack
Communities
Powered by
Are you using retrofit ? If so then I see from <h...
# codereview
a
aoriani
12/31/2019, 12:35 AM
Are you using retrofit ? If so then I see from
https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Response.java#L143
response.body is nullable. The cast can potentially cause a NPE. Perhaps a
val tasks = response.body ?: arrayListOf<Task>()
would be better
☝️ 1
Open in Slack
Previous
Next