Skip to content

Commit 09dc11b

Browse files
adamscottFaless
authored andcommitted
Add missing script_type nullptr check
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com> (cherry picked from commit 1236302)
1 parent 314c729 commit 09dc11b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/gdscript/gdscript_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4130,7 +4130,7 @@ String GDScriptParser::DataType::to_string() const {
41304130
return class_type->fqcn;
41314131
case SCRIPT: {
41324132
if (is_meta_type) {
4133-
return script_type->get_class_name().operator String();
4133+
return script_type != nullptr ? script_type->get_class_name().operator String() : "";
41344134
}
41354135
String name = script_type != nullptr ? script_type->get_name() : "";
41364136
if (!name.is_empty()) {

0 commit comments

Comments
 (0)