mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Test for NULL pointer before returning well path name
This commit is contained in:
parent
9362530666
commit
bb18c28cf3
@ -575,7 +575,14 @@ QString RimWellLogExtractionCurve::wellLogChannelName() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellLogExtractionCurve::wellName() const
|
||||
{
|
||||
return m_wellPath->name();
|
||||
if (m_wellPath)
|
||||
{
|
||||
return m_wellPath->name();
|
||||
}
|
||||
else
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user