Polling, the ugly way, but the compiler tells me `...
# compiler
r
Polling, the ugly way, but the compiler tells me
c
will always be null:
Copy code
cardScope.launch { 
                            var contact: WhatsAppVideo? = null
                            while (contact == null) {
                                delay(500)
                                contact = getContact()
                            }
                            callContact(c!!)
                        }
a
which Kotlin version? I knocked up a quick demo and I see a warning https://pl.kotl.in/wwzfDN5Xj
image.png
r
Ah, 🤦
c
vs.
contact