chèque kotlin var init

lateinit var file: File    

if (this::file.isInitialized) { ... }
Hjmcoder