mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 20:30:46 -06:00
AppFwk : Guard against null pointer access
This commit is contained in:
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)
|
for (auto childObject : childObjects)
|
||||||
{
|
{
|
||||||
childObject->descendantsIncludingThisOfType(descendants);
|
if (childObject)
|
||||||
|
{
|
||||||
|
childObject->descendantsIncludingThisOfType(descendants);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user