aaverin
04/18/2016, 9:29 AMif (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:
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