Guard for if eclipseCaseData is null

This commit is contained in:
Rebecca Cox
2017-12-01 15:39:54 +01:00
parent a5300032e9
commit 32c1fa25d5
3 changed files with 20 additions and 13 deletions
@@ -465,8 +465,10 @@ RifReaderEclipseRft* RimWellLogRftCurve::rftReader() const
//--------------------------------------------------------------------------------------------------
RigEclipseWellLogExtractor* RimWellLogRftCurve::extractor()
{
if (!m_eclipseResultCase()) return nullptr;
RifReaderEclipseRft* reader = rftReader();
if (!reader) return nullptr;
RimMainPlotCollection* mainPlotCollection;
this->firstAncestorOrThisOfTypeAsserted(mainPlotCollection);