Check if index is valid when resolving child objects

This commit is contained in:
Magne Sjaastad 2015-09-18 18:49:27 +02:00
parent d9b070c0ef
commit dcf9ac9b50

View File

@ -217,6 +217,11 @@ PdmObjectHandle* PdmReferenceHelper::objectFromReferenceStringList(PdmObjectHand
if (index > -1)
{
if (index >= childObjects.size() - 1)
{
return NULL;
}
PdmObjectHandle* listObject = childObjects[index];
currentObject = listObject;
}