mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
#2466 Fix the one occurence of non-guarded activeReservoirView access found.
This commit is contained in:
parent
76f8b9ac90
commit
2e0cd60fc4
@ -84,11 +84,13 @@ void RicImportFormationNamesFeature::onActionTriggered(bool isChecked)
|
||||
if (!cases.empty())
|
||||
{
|
||||
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
|
||||
RimCase* ownerCase = activeView->ownerCase();
|
||||
|
||||
if (ownerCase)
|
||||
if (activeView)
|
||||
{
|
||||
ownerCase->setFormationNames(formationName);
|
||||
RimCase* ownerCase = activeView->ownerCase();
|
||||
if (ownerCase)
|
||||
{
|
||||
ownerCase->setFormationNames(formationName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user