Is expected a `var`? If so then the problem is tha...
# atrium
r
Is expected a
var
? If so then the problem is that the var could have changed since the null check and thus kotlin cannot apply s smart cast. Assign it to a local variable and it should work