When Dialogic panel has not been opened, current_editor is null, causing error on save and Debug Game start: "editors_manager.gd:212 - Invalid call. Nonexistent function '_save' in base 'Nil'." #2250
Labels
Bug 🐞
Something isn't working
The problem
Describe the bug
On save and Debug Game start, I see this output error flashing:
res://addons/dialogic/Editor/editors_manager.gd:212 - Invalid call. Nonexistent function '_save' in base 'Nil'.
since it happens just before actual game start, when output log is configured to be Cleared on start (Editor Settings > run/output/always_clear_output_on_play), it disappears quickly, but you can disable auto-clear to see it better.
Then errors will appear just before
--- Debugging process started ---
I found the line causing the error:
so it's normal that it's run on save and Debug Game start, but for some reason the current editor is null.
It seems to happen after opening Godot and not opening the Dialogic panel at all, but I didn't notice it before although I haven't always been working with Dialogic, so I'm not sure.
After opening Dialogic panel just clicking on the Dialogic top button, error still occurs until you actual select a tab (e.g. Styles). From there, error will not occur.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no errors.
System (please complete the following information):
Solutions
Workaround
Open the Dialogic panel and select one tab
Possible fixes
Check if current_editor != null before using it everywhere
The text was updated successfully, but these errors were encountered: