AppFwk : Guard against null pointer access

This commit is contained in:
Magne Sjaastad 2017-09-08 13:32:00 +02:00
parent 4aefb59f69
commit 59e818f2b8

View File

@ -191,7 +191,10 @@ void PdmObjectHandle::descendantsIncludingThisOfType(std::vector<T*>& descendant
for (auto childObject : childObjects)
{
childObject->descendantsIncludingThisOfType(descendants);
if (childObject)
{
childObject->descendantsIncludingThisOfType(descendants);
}
}
}
}