Added/Fixed null pointer checks
This commit is contained in:
@ -2087,7 +2087,7 @@ public:
|
||||
}
|
||||
|
||||
Node *another = node->get_node(path);
|
||||
if (!node) {
|
||||
if (!another) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
r_error_str = "Path does not lead Node!";
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user