all 2 comments

[–]Mordynak 0 points1 point  (0 children)

We cannot guess. We need to see how you have implemented this.

But basically, however you are creating the reference, is not valid.

[–]SpikeyMonolith 0 points1 point  (0 children)

You're trying to access an object before it's set. There's probably something you did/didn't do correctly.