Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-07-09 16:21:13 +0300
committerJacques Lucke <jacques@blender.org>2021-07-09 16:21:25 +0300
commit09082f6e85d2845afa3d51338ca22cca6f4d5ab4 (patch)
tree3d85f64a471f20e823a42d945a5664bb52c5938c
parentc749c2468215944ddef774a2a87953177a1ad901 (diff)
Fix: crash when using empty attribute search
-rw-r--r--source/blender/editors/space_node/node_geometry_attribute_search.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_geometry_attribute_search.cc b/source/blender/editors/space_node/node_geometry_attribute_search.cc
index ab63531ff49..a6901c21862 100644
--- a/source/blender/editors/space_node/node_geometry_attribute_search.cc
+++ b/source/blender/editors/space_node/node_geometry_attribute_search.cc
@@ -155,6 +155,9 @@ static void attribute_search_update_fn(
static void attribute_search_exec_fn(bContext *C, void *data_v, void *item_v)
{
+ if (item_v == nullptr) {
+ return;
+ }
AttributeSearchData *data = static_cast<AttributeSearchData *>(data_v);
GeometryAttributeInfo *item = (GeometryAttributeInfo *)item_v;