mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2067 NNC : Guard before accessing values
This commit is contained in:
@@ -169,7 +169,7 @@ void RivNNCGeometryGenerator::textureCoordinates(cvf::Vec2fArray* textureCoords,
|
||||
nncResultVals = m_nncData->generatedConnectionScalarResult(scalarResultIndex, nativeTimeStepIndex);
|
||||
}
|
||||
|
||||
if (!nncResultVals)
|
||||
if (!nncResultVals || nncResultVals->size() == 0)
|
||||
{
|
||||
textureCoords->setAll(cvf::Vec2f(0.0f, 1.0f));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user