summaryrefslogtreecommitdiff
path: root/core/templates
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-01-10 17:19:47 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-01-10 18:24:31 +0800
commitaf67e4c2919cb12ec257ca6bc3bb264933e4e2a4 (patch)
tree20e7925170db8d00203916857794d06aab0adc26 /core/templates
parentd7464757084099765dee5755b21a8847f4226360 (diff)
Fix crash on importing FBX file
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/set.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/templates/set.h b/core/templates/set.h
index 9107459884..cdc6e8447d 100644
--- a/core/templates/set.h
+++ b/core/templates/set.h
@@ -582,6 +582,9 @@ public:
}
Element *lower_bound(const T &p_value) const {
+ if (!_data._root) {
+ return nullptr;
+ }
return _lower_bound(p_value);
}