Hi there. I have a question about the 1.5.0 releas...
# android
r
Hi there. I have a question about the 1.5.0 release. There's a part of my Kotlin Android app that works fine with 1.4.32 but doesn't work with 1.5.0, 1.5.10, or 1.5.20. It's when a WebView is destroyed. I first remove it from the parent container in the UI and then call destroy on the object itself. In the old version of Kotlin, it works well, but in the newer versions, the variable gets set to
null
after the WebView is detached from the parent container. Destroying it later on results in a
NPE
. Posted about it here. Have really no idea what it could be after perusing the release notes. Would appreciate any help
I've kept everything else constant and just changed the Kotlin version, and it results in the NPE
e
if
webView
is coming from ViewBinding, perhaps something changed in the generated code there
r
yes it uses ViewBinding!
What would be the best way to confirm the generated code changes?
e
I think it generates a classfile directly now, so you'd have to disassemble