mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Guard against null pointer access
This commit is contained in:
parent
4aefb59f69
commit
59e818f2b8
@ -191,7 +191,10 @@ void PdmObjectHandle::descendantsIncludingThisOfType(std::vector<T*>& descendant
|
||||
|
||||
for (auto childObject : childObjects)
|
||||
{
|
||||
childObject->descendantsIncludingThisOfType(descendants);
|
||||
if (childObject)
|
||||
{
|
||||
childObject->descendantsIncludingThisOfType(descendants);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user