From af67e4c2919cb12ec257ca6bc3bb264933e4e2a4 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 10 Jan 2022 17:19:47 +0800 Subject: Fix crash on importing FBX file --- core/templates/set.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/templates') 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); } -- cgit v1.2.3