diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-05 19:14:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-06 12:21:33 +0300 |
commit | 99b9e23ce1aad3bb5371fbef76defd7ddc480e5b (patch) | |
tree | d40b5096bf33f206a45132b594217242dcba29b6 /source | |
parent | 4c5736a77fc04b457d9187d91342b5d19eab580e (diff) |
Depsgraph: Add missing NULL pointer check
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc index 835cf81655a..7e9b2f5c58c 100644 --- a/source/blender/depsgraph/intern/depsgraph.cc +++ b/source/blender/depsgraph/intern/depsgraph.cc @@ -233,6 +233,9 @@ DepsNode *Depsgraph::find_node_from_pointer(const PointerRNA *ptr, } ComponentDepsNode *comp_node = id_node->find_component(node_type, component_name); + if (comp_node == NULL) { + return NULL; + } if (operation_code == DEG_OPCODE_OPERATION) { return comp_node; } @@ -240,7 +243,6 @@ DepsNode *Depsgraph::find_node_from_pointer(const PointerRNA *ptr, operation_name, operation_name_tag); } - return NULL; } |