https://kotlinlang.org logo
Title
d

dangvh

03/03/2019, 4:18 AM
Hey Guys, I have problem with kotlin android and retrofit 2, rxjava That is "Caused by: kotlin.UninitializedPropertyAccessException: lateinit property compositeDisposable has not been initialized"
t

tseisel

03/03/2019, 9:43 AM
The error message is clear : at some point in your code, you are accessing a class variable named "compositeDisposable" that has not been initialized. Maks sure that you assign a value to this variable before reading it, like this :
compositeDisposable = CompositeDisposable()
5
r

rkeazor

03/03/2019, 2:08 PM
I plus one that lol
d

dangvh

03/03/2019, 3:26 PM
Yeah, I just fix