Closed timjrobinson closed 3 years ago
I created #127 to demonstrate this. Should be able to just run the examples to see the crash.
Next PR will fix this.
Looks like the onready
loads references correctly in the ready function, but since it is referencing parent nodes this doesn't work.
In Godot child nodes are first loaded, then parents.
Describe the bug I'm testing out the updates in #124 and Realtime Database is crashing when trying to listen to a path on this line: https://github.com/GodotNuts/GodotFirebase/blob/main/addons/godot-firebase/database/reference.gd#L123 because
_auth_obj
is null.Full stack trace:
When I put a breakpoint on https://github.com/GodotNuts/GodotFirebase/blob/main/addons/godot-firebase/database/reference.gd#L26 the onready is called after my code. So it seems I need to wait longer for it to be ready before using it? How can I do that?
To Reproduce
Here's some example code that reproduces it:
It crashes in
_create_game
Expected behavior
I expect this to connect to that path in the database and not crash.
Environment: