mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash when right clicking on a well when the case does not have RFT data
This commit is contained in:
parent
764833edcf
commit
c52d9522c0
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user