Test for NULL pointer before returning well path name

This commit is contained in:
Magne Sjaastad 2016-06-29 13:23:56 +02:00
parent 9362530666
commit bb18c28cf3

View File

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