diff options
author | Bartkk <TheBartkk@gmail.com> | 2023-01-21 04:19:54 +0100 |
---|---|---|
committer | Bartkk <TheBartkk@gmail.com> | 2023-01-21 04:42:44 +0100 |
commit | 292b24bae05faf368a9330c05fd834096c1bb0cb (patch) | |
tree | f7f18658cd65d2c4a9924515cfceff8759903c11 | |
parent | 4db3716d8d9bbc95c031818b190002602558b0f2 (diff) |
Check if file was removed when parsing documentation
-rw-r--r-- | editor/editor_file_system.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index a9b4c08698..db780b3665 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -1533,6 +1533,11 @@ void EditorFileSystem::_update_script_classes() { int index = -1; EditorFileSystemDirectory *efd = find_file(path, &index); + if (!efd || index < 0) { + // The file was removed + continue; + } + for (int i = 0; i < ScriptServer::get_language_count(); i++) { ScriptLanguage *lang = ScriptServer::get_language(i); if (lang->supports_documentation() && efd->files[index]->type == lang->get_type()) { |