AppFwk : Guard against null pointer access

This commit is contained in:
Magne Sjaastad committed 2017-09-13 07:08:06 +02:00
1 parent 4aefb59f69
commit 59e818f2b8
1 file changed
+4 -1
@@ -191,7 +191,10 @@ void PdmObjectHandle::descendantsIncludingThisOfType(std::vector<T*>& descendant
for (auto childObject : childObjects)
{
childObject->descendantsIncludingThisOfType(descendants);
if (childObject)
{
childObject->descendantsIncludingThisOfType(descendants);
}
}
}
}