cheque de init kotlin var
lateinit var file: File
if (this::file.isInitialized) { ... }
Hjmcoder
lateinit var file: File
if (this::file.isInitialized) { ... }