mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Prevent null crash when datatype not resolved
This commit is contained in:
parent
f74491fdee
commit
03e41d21e0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user