You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #75943 from adamscott/fix-missing-script-type-nullptr-check
Add missing `script_type` `nullptr` check
This commit is contained in:
@@ -4192,7 +4192,7 @@ String GDScriptParser::DataType::to_string() const {
|
|||||||
return class_type->fqcn;
|
return class_type->fqcn;
|
||||||
case SCRIPT: {
|
case SCRIPT: {
|
||||||
if (is_meta_type) {
|
if (is_meta_type) {
|
||||||
return script_type->get_class_name().operator String();
|
return script_type != nullptr ? script_type->get_class_name().operator String() : "";
|
||||||
}
|
}
|
||||||
String name = script_type != nullptr ? script_type->get_name() : "";
|
String name = script_type != nullptr ? script_type->get_name() : "";
|
||||||
if (!name.is_empty()) {
|
if (!name.is_empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user