[Bf-blender-cvs] [99b9e23ce1a] master: Depsgraph: Add missing NULL pointer check
Sergey Sharybin
noreply at git.blender.org
Wed Dec 6 10:33:15 CET 2017
Commit: 99b9e23ce1aad3bb5371fbef76defd7ddc480e5b
Author: Sergey Sharybin
Date: Tue Dec 5 17:14:17 2017 +0100
Branches: master
https://developer.blender.org/rB99b9e23ce1aad3bb5371fbef76defd7ddc480e5b
Depsgraph: Add missing NULL pointer check
===================================================================
M source/blender/depsgraph/intern/depsgraph.cc
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list