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:
authorJulian Eisel <julian@blender.org>2020-10-15 21:39:20 +0300
committerJulian Eisel <julian@blender.org>2020-10-15 21:40:03 +0300
commita88076e948a93c087e1b20bb3d3c424db0f39fbe (patch)
tree27147dd0c3c133990cb6372462e9c5e06e2390b6 /source/blender/editors/space_outliner/outliner_edit.c
parentd4f94d8a31044af489d4821966854a7bc8975d23 (diff)
Fix error in previous commit
Missing null-check, could lead to null-pointer dereference.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 85e841538d6..4a9aa984398 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -387,7 +387,7 @@ static int outliner_item_rename(bContext *C, wmOperator *op, const wmEvent *even
TreeElement *hovered = outliner_find_item_at_y(
space_outliner, &space_outliner->tree, fmval[1]);
- if (outliner_item_is_co_over_name(hovered, fmval[0])) {
+ if (hovered && outliner_item_is_co_over_name(hovered, fmval[0])) {
do_item_rename(region, hovered, TREESTORE(hovered), op->reports);
}
}