mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
parent
fa25f448a1
commit
90ce1126a9
@ -131,7 +131,7 @@ void RimFractureTemplateCollection::setDefaultUnitSystemBasedOnLoadedCases()
|
||||
for (const auto& c : rimCases)
|
||||
{
|
||||
auto eclipseCase = dynamic_cast<RimEclipseCase*>(c);
|
||||
if (eclipseCase)
|
||||
if (eclipseCase && eclipseCase->eclipseCaseData())
|
||||
{
|
||||
if (commonUnitSystemForAllCases == RiaEclipseUnitTools::UNITS_UNKNOWN)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user