diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp index 149c5b0c0e..66dfb20a8a 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp @@ -644,7 +644,11 @@ void RimSummaryPlot::copyAxisPropertiesFromOther( RiaDefines::PlotAxis plotAxisT QString data = ap->writeObjectToXmlString(); - axisPropertiesForPlotAxis( ap->plotAxis() )->readObjectFromXmlString( data, caf::PdmDefaultObjectFactory::instance() ); + auto axisProperty = axisPropertiesForPlotAxis( ap->plotAxis() ); + if ( axisProperty ) + { + axisProperty->readObjectFromXmlString( data, caf::PdmDefaultObjectFactory::instance() ); + } } }