Instead of this: ``` lateinit var foo: String ``` ...
# getting-started
r
Instead of this:
Copy code
lateinit var foo: String
You do this:
Copy code
var foo: String? = null
Now you can check if there's a value there by doing this:
Copy code
if(foo != null) {
    // Okay, foo is initialized, do something with it
}