Skip to content

Commit

Permalink
GDScript: Fix null deref when ensuring cached parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
vnen committed Jul 24, 2024
1 parent 91eb688 commit 8c7d8b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3702,7 +3702,9 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::ensure_cached_parser_for_class(const GD

dependant_parser_ref = Ref<GDScriptParserRef>();
dependant_parser = nullptr;
p_from_class = p_from_class->base_type.class_type;
if (p_from_class != nullptr) {
p_from_class = p_from_class->base_type.class_type;
}
} while (p_from_class != nullptr);

if (parser_ref.is_null()) {
Expand Down

0 comments on commit 8c7d8b6

Please sign in to comment.