mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#950 Guard null pointer access
This commit is contained in:
@@ -1728,7 +1728,11 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateDerivedResult(in
|
||||
|
||||
size_t i, j, k;
|
||||
femPart->structGrid()->ijkFromCellIndex(elmIdx, &i, &j, &k);
|
||||
int formNameIdx = activeFormNames->formationIndexFromKLayerIdx(k);
|
||||
int formNameIdx = -1;
|
||||
if (activeFormNames)
|
||||
{
|
||||
formNameIdx = activeFormNames->formationIndexFromKLayerIdx(k);
|
||||
}
|
||||
|
||||
for(int elmNodIdx = 0; elmNodIdx < elmNodeCount; ++elmNodIdx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user