What would cause a TextView to be null when attemp...
# android
n
What would cause a TextView to be null when attempting to set it's text in a retrofit callback? I've tried backgrounding the app, switching to a different fragment in the app (the one with the TextView is still in the backstack), and closing it before the callback is executed and wasn't able to reproduce it. Happens to my users fairly infrequently, and I've fixed it for now with a null check before setting the text, but I'm curious what would be causing it. I'm using the Kotlin way of using the view id in code, instead of findviewbyid, if that matters