From bb18c28cf30dd184ba0dacefaccd98e30afadd0f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 29 Jun 2016 13:23:56 +0200 Subject: [PATCH] Test for NULL pointer before returning well path name --- .../ProjectDataModel/RimWellLogExtractionCurve.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp index e40793bfef..1646a436ed 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp @@ -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(); + } } //--------------------------------------------------------------------------------------------------