Join Slack
Powered by
If I run into an NPE on that line, how would I fix...
# coroutines
s
Susheel
03/30/2021, 6:15 PM
If I run into an NPE on that line, how would I fix it?
Susheel
03/30/2021, 6:19 PM
NPE means that the coroutine context doesn't have a job at that point.
Susheel
03/30/2021, 6:20 PM
I could add a job to the dispatcher I'm assigning to that code to but how would I re-write the code below?
Susheel
03/30/2021, 6:22 PM
message has been deleted
c
christophsturm
03/30/2021, 6:47 PM
i would ask in
#ktor
also I think its a bug that there is no useful error message when the job is not found
👍 1
s
Susheel
03/30/2021, 7:12 PM
Thanks, I just did. This engine works in the meantime if anyone is interested:
https://github.com/ktorio/ktor/blob/master/ktor-client/ktor-client-core/common/src/io/ktor/client/statement/HttpResponse.kt#L81
4
Views
Open in Slack
Previous
Next