I know you’ve solved this yourself, but I want to explain how this error happens, since it just happened to me.
Basically you’re calling hide()
, remove()
, etc., with a null value.
The error isn’t obvious, and the stack trace doesn’t originate from your own sources when this happens, so it’s not trivial to realise what it is.