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:
@@ -95,7 +95,10 @@ bool RicWellLogTools::wellHasRftData(const QString& wellName)
|
|||||||
{
|
{
|
||||||
if (resultCase = dynamic_cast<RimEclipseResultCase*>(rimCase))
|
if (resultCase = dynamic_cast<RimEclipseResultCase*>(rimCase))
|
||||||
{
|
{
|
||||||
return resultCase->rftReader()->wellHasRftData(wellName);
|
if (resultCase->rftReader())
|
||||||
|
{
|
||||||
|
return resultCase->rftReader()->wellHasRftData(wellName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user