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

@ -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);
}
}
}