mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard nullpointer access
Seen when running regression test ProjectFiles\CommandFileTests\TestCase_Multiple_Fractures and rest of tests in this folder
This commit is contained in:
parent
6dec2aa1ef
commit
f96a597321
@ -166,9 +166,9 @@ void Rim2dIntersectionView::scheduleGeometryRegen( RivCellSetEnum geometryType )
|
||||
RimCase* Rim2dIntersectionView::ownerCase() const
|
||||
{
|
||||
RimCase* rimCase = nullptr;
|
||||
if ( RimIntersectionResultDefinition* sepInterResultDef = m_intersection->activeSeparateResultDefinition() )
|
||||
if ( m_intersection && m_intersection->activeSeparateResultDefinition() )
|
||||
{
|
||||
rimCase = sepInterResultDef->activeCase();
|
||||
rimCase = m_intersection->activeSeparateResultDefinition()->activeCase();
|
||||
}
|
||||
|
||||
if ( !rimCase )
|
||||
|
Loading…
Reference in New Issue
Block a user