I have following code: ``` if (view != null &&...
# announcements
a
I have following code:
Copy code
if (view != null && view.isPageVisible()) {
//my logic
        }
and I get an error that
smart cast is impossible because view is a mujtable property that could have been changed by this time
what is the best way to handle this? I can write:
Copy code
if (view != null && view!!.isPageVisible()) { }
but that just masks the problem, and
!!
shouldn't really be used after a null check, because I know property is not a null already