Have you searched your code for all calls to ‘createScrollBar’, then once you locate the file or files, that call make the call, look for a listener function that accesses something .parent ? Or you could search all code in your game/app folder for the phrase " .parent".
I’m not saying this will find the issue with 100% certainty, since you didn’t mention looking for it I have am asking if you tried these things.
As far as the cause, well if you’ve included any external code (not written by you) and it has this problem, you could be getting this (generic) error message from that code. I do know that hunting down generic errors like this where the source file is not explicitly spelled out is annoying, but the error message should be giving you enough data to narrow down the listener that caused the issue.
Just to elaborate, you know the following from the error message:
-
The function ‘createScrollBar()’ was called and passed a listener function. This listener is causing the issue.
-
In whatever file that listener lives in, it starts on line 141.
-
The offending code in the listener is on line 218 of the same file.
Good luck on this.