diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c index a3ed2eac2d5..cf236c66e53 100644 --- a/source/blender/editors/space_outliner/outliner_tools.c +++ b/source/blender/editors/space_outliner/outliner_tools.c @@ -226,7 +226,7 @@ static void outliner_do_libdata_operation(bContext *C, Scene *scene, SpaceOops * tselem = TREESTORE(te); if (tselem->flag & TSE_SELECTED) { if (tselem->type == 0) { - TreeStoreElem *tsep = TREESTORE(te->parent); + TreeStoreElem *tsep = te->parent ? TREESTORE(te->parent) : NULL; operation_cb(C, scene, te, tsep, tselem); } } @@ -866,7 +866,7 @@ static void outliner_do_id_set_operation(SpaceOops *soops, int type, ListBase *l tselem = TREESTORE(te); if (tselem->flag & TSE_SELECTED) { if (tselem->type == type) { - TreeStoreElem *tsep = TREESTORE(te->parent); + TreeStoreElem *tsep = te->parent ? TREESTORE(te->parent) : NULL; operation_cb(te, tselem, tsep, newid); } }