I debated whether Id post this, but since it does come up once every 1-2 days I do think its important enough to at least mention. Hope my information can help you track it down, I appologize on beforehand for the slim data I can provide.
Setup:
RxJava2
Dagger2
Kotlin
Crash log:
Attempt to invoke virtual method 'void io.realm.ProxyState.setConstructionFinished()' on a null object reference
Scenario:
Usually when Im refactoring code that relates to how and what Dagger will provide. Ive never touched any of my Realm related code when this issue has come up.
Solution:
Id do one clean & build, nothing. Restart Android Studio. Clean & build, and voila; it works.
Config:
Android Studio 2.3
Realm 3.0.0 (Sync feature disabled)
Kotlin 1.1.1
Dagger 2.1.0
RxJava 2.0.7
Tested on a Google Pixel, API 24
I dont really expect any miracle, seeings how rare it is and the slim data I can provide, but I hope it can provide some value to you in assisting with fixing it. Thanks for all your work, and let me know if theres anything else I can do to help with this.
I debated whether Id post this, but since it does come up once every 1-2 days I do think its important enough to at least mention. Hope my information can help you track it down, I appologize on beforehand for the slim data I can provide.
Setup:
RxJava2
Dagger2
Kotlin
Crash log:
Attempt to invoke virtual method 'void io.realm.ProxyState.setConstructionFinished()' on a null object referenceScenario:
Usually when Im refactoring code that relates to how and what Dagger will provide. Ive never touched any of my Realm related code when this issue has come up.
Solution:
Id do one clean & build, nothing. Restart Android Studio. Clean & build, and voila; it works.
Config:
Android Studio 2.3
Realm 3.0.0 (Sync feature disabled)
Kotlin 1.1.1
Dagger 2.1.0
RxJava 2.0.7
Tested on a Google Pixel, API 24
I dont really expect any miracle, seeings how rare it is and the slim data I can provide, but I hope it can provide some value to you in assisting with fixing it. Thanks for all your work, and let me know if theres anything else I can do to help with this.