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

@@ -574,9 +574,16 @@ QString RimWellLogExtractionCurve::wellLogChannelName() const
///
//--------------------------------------------------------------------------------------------------
QString RimWellLogExtractionCurve::wellName() const
{
if (m_wellPath)
{
return m_wellPath->name();
}
else
{
return QString();
}
}
//--------------------------------------------------------------------------------------------------
///