mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
Guard null pointer access
This commit is contained in:
parent
147c4f752f
commit
70f16eae27
@ -883,10 +883,13 @@ void RimGridCrossPlotCurveSet::exportFormattedData(RifEclipseDataTableFormatter&
|
||||
void RimGridCrossPlotCurveSet::triggerPlotNameUpdateAndReplot()
|
||||
{
|
||||
RimGridCrossPlot* parent;
|
||||
this->firstAncestorOrThisOfTypeAsserted(parent);
|
||||
parent->updateCurveNamesAndPlotTitle();
|
||||
parent->reattachCurvesToQwtAndReplot();
|
||||
parent->updateConnectedEditors();
|
||||
this->firstAncestorOrThisOfType(parent);
|
||||
if (parent)
|
||||
{
|
||||
parent->updateCurveNamesAndPlotTitle();
|
||||
parent->reattachCurvesToQwtAndReplot();
|
||||
parent->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user