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-17 09:52:31 +02:00
parent 764833edcf
commit c52d9522c0
+4 -1
View File
@@ -95,7 +95,10 @@ bool RicWellLogTools::wellHasRftData(const QString& wellName)
{
if (resultCase = dynamic_cast<RimEclipseResultCase*>(rimCase))
{
return resultCase->rftReader()->wellHasRftData(wellName);
if (resultCase->rftReader())
{
return resultCase->rftReader()->wellHasRftData(wellName);
}
}
}