Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid null get_tree() call #2052

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

Invertex
Copy link
Contributor

get_tree() can return null when the Dialogic view isn't open but this function is being called by an external system. No node tree exists to wait for or manipulate, so errors are spammed.

get_tree() can return null when the Dialogic view isn't open but this function is being called by an external system. No node tree exists to wait for or manipulate, so errors are spammed.
@Jowan-Spooner
Copy link
Member

Thanks, LGTM.

@Jowan-Spooner Jowan-Spooner merged commit c33a560 into dialogic-godot:main Jan 26, 2024
2 checks passed
Invertex added a commit to Invertex/dialogic that referenced this pull request Jan 27, 2024
commit 17683f8
Author: Jowan-Spooner <[email protected]>
Date:   Fri Jan 26 18:55:38 2024 +0100

    Rename the Other folder to Core (dialogic-godot#2047)

    * Rename the Other folder to Core

    * Add a small auto-update

    * Fix unit test

commit ce2a734
Author: Jowan-Spooner <[email protected]>
Date:   Fri Jan 26 18:55:03 2024 +0100

    Allow specifying parent to add layout (dialogic-godot#2048)

    - fixes dialogic-godot#2029

commit c33a560
Author: Dabbles in too many things <[email protected]>
Date:   Fri Jan 26 09:54:52 2024 -0800

    Avoid null get_tree() call (dialogic-godot#2052)

    get_tree() can return null when the Dialogic view isn't open but this function is being called by an external system. No node tree exists to wait for or manipulate, so errors are spammed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants