1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00
This commit is contained in:
Cedric Beust 2015-12-24 22:03:22 +04:00
parent 54ec63e3fd
commit ec13a5c1f0

View file

@ -37,7 +37,7 @@ public class GithubApi @Inject constructor(val executors: KobaltExecutors,
private fun parseRetrofitError(e: Throwable) : RetrofitErrorsResponse {
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)
}