Merge pull request #59111 from timothyqiu/is-null-3.x

This commit is contained in:
Rémi Verschelde 2022-03-13 16:39:02 +01:00 committed by GitHub
commit 77d594409e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -509,7 +509,11 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
#ifdef DEBUG_ENABLED
if (!nc) {
err_text = "Right operand of 'is' is not a class (type: '" + obj_B->get_class() + "').";
if (obj_B) {
err_text = "Right operand of 'is' is not a class (type: '" + obj_B->get_class() + "').";
} else {
err_text = "Right operand of 'is' is null.";
}
OPCODE_BREAK;
}
#endif