I’m using Codacy for code quality, I get this mess...
# getting-started
o
I’m using Codacy for code quality, I get this message about my injection code http://snpy.in/rsWGMm
s
It is error prone. You create a fields that will throw exceptions when accessed without initializing. Kotlin tries to fix this by using nullable fields. However, on Android you don't really have an other way (without making them nullable) because you need to use the lifecycle of the activity. Lateinit is exactly for this kind of situations.
o
thank you
I deduced that or either by lazy, but lateinit is the most ideal