Are you using retrofit ? If so then I see from <h...
# codereview
a
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