Skip to content

Commit

Permalink
Guard null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Sep 25, 2023
1 parent bfad8d9 commit 0fbcccd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
}
}

Expand Down

0 comments on commit 0fbcccd

Please sign in to comment.