mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
NPE.
This commit is contained in:
parent
54ec63e3fd
commit
ec13a5c1f0
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class GithubApi @Inject constructor(val executors: KobaltExecutors,
|
||||||
|
|
||||||
private fun parseRetrofitError(e: Throwable) : RetrofitErrorsResponse {
|
private fun parseRetrofitError(e: Throwable) : RetrofitErrorsResponse {
|
||||||
val re = e as RetrofitError
|
val re = e as RetrofitError
|
||||||
val json = String((re.response.body as TypedByteArray).bytes)
|
val json = String((re.response?.body as TypedByteArray).bytes)
|
||||||
return Gson().fromJson(json, RetrofitErrorsResponse::class.java)
|
return Gson().fromJson(json, RetrofitErrorsResponse::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue