From 0528ce0a2a4b492d8ad7116654e00e9a2a790700 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 9 Oct 2019 15:02:31 +0200 Subject: Fix crash when using `Node.get_as_property_path()` This closes #32679. --- core/node_path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/node_path.cpp') diff --git a/core/node_path.cpp b/core/node_path.cpp index b43f76f680..970ed100fe 100644 --- a/core/node_path.cpp +++ b/core/node_path.cpp @@ -269,7 +269,7 @@ NodePath NodePath::rel_path_to(const NodePath &p_np) const { NodePath NodePath::get_as_property_path() const { - if (!data->path.size()) { + if (!data || !data->path.size()) { return *this; } else { Vector new_path = data->subpath; -- cgit v1.2.3