diff options
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 16b24b14845..6679489af60 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -2371,7 +2371,7 @@ static TreeTraversalAction outliner_collect_objects_to_delete(TreeElement *te, v /* Do not allow to delete children objects of an override collection. */ TreeElement *te_parent = te->parent; - if (outliner_is_collection_tree_element(te_parent)) { + if (te_parent != nullptr && outliner_is_collection_tree_element(te_parent)) { TreeStoreElem *tselem_parent = TREESTORE(te_parent); ID *id_parent = tselem_parent->id; BLI_assert(GS(id_parent->name) == ID_GR); |