mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
Check if index is valid when resolving child objects
This commit is contained in:
parent
d9b070c0ef
commit
dcf9ac9b50
@ -217,6 +217,11 @@ PdmObjectHandle* PdmReferenceHelper::objectFromReferenceStringList(PdmObjectHand
|
||||
|
||||
if (index > -1)
|
||||
{
|
||||
if (index >= childObjects.size() - 1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PdmObjectHandle* listObject = childObjects[index];
|
||||
currentObject = listObject;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user