mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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())
|
if (!cases.empty())
|
||||||
{
|
{
|
||||||
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
|
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
|
||||||
RimCase* ownerCase = activeView->ownerCase();
|
if (activeView)
|
||||||
|
|
||||||
if (ownerCase)
|
|
||||||
{
|
{
|
||||||
ownerCase->setFormationNames(formationName);
|
RimCase* ownerCase = activeView->ownerCase();
|
||||||
|
if (ownerCase)
|
||||||
|
{
|
||||||
|
ownerCase->setFormationNames(formationName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user