You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Prevent null crash when datatype not resolved
This commit is contained in:
@@ -4001,7 +4001,7 @@ String GDScriptParser::DataType::to_string() const {
|
||||
if (is_meta_type) {
|
||||
return script_type->get_class_name().operator String();
|
||||
}
|
||||
String name = script_type->get_name();
|
||||
String name = script_type != nullptr ? script_type->get_name() : "";
|
||||
if (!name.is_empty()) {
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user