mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Guard use of front() on empty list
This commit is contained in:
parent
631570f6a5
commit
fa1733bf79
@ -326,7 +326,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromFieldReference(PdmFieldHandle* fr
|
||||
CAF_ASSERT(lastCommonAnchestor);
|
||||
CAF_ASSERT(decodedReference.size());
|
||||
|
||||
while (decodedReference.front() == "..")
|
||||
while (!decodedReference.empty() && decodedReference.front() == "..")
|
||||
{
|
||||
PdmFieldHandle* parentField = lastCommonAnchestor->parentField();
|
||||
if (!parentField)
|
||||
|
Loading…
Reference in New Issue
Block a user