Is there a better way to handle the smart cast nul...
# announcements
s
Is there a better way to handle the smart cast null check here?
Copy code
private var dialog : AlertDialog? = null

    private fun createDialog() {
        dialog = AlertDialog.Builder( this )
                .setTitle("foo bar")
                .create()

        dialog?.show()
    }