Fix crash when right clicking on a well when the case does not have RFT data

This commit is contained in:
Rebecca Cox
2017-10-16 16:00:53 +02:00
parent 764833edcf
commit c52d9522c0

View File

@@ -94,10 +94,13 @@ bool RicWellLogTools::wellHasRftData(const QString& wellName)
for (RimCase* rimCase : cases) for (RimCase* rimCase : cases)
{ {
if (resultCase = dynamic_cast<RimEclipseResultCase*>(rimCase)) if (resultCase = dynamic_cast<RimEclipseResultCase*>(rimCase))
{
if (resultCase->rftReader())
{ {
return resultCase->rftReader()->wellHasRftData(wellName); return resultCase->rftReader()->wellHasRftData(wellName);
} }
} }
}
return false; return false;
} }