dalexander
02/14/2017, 12:37 AMlateinit keyword. A better solution if it’s viable would be initializing them as part of the constructor. ie. class SettingsPresenter(val settingsForm: settingsForm = SettingsFrom())…. Finally if you use them a bunch and they might actually be null, you can use smartcasting or settingsForm?.apply { settingsForm is smartcast to not null in here }.