mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add guards to analysis plots in case of deleted summary cases
This commit is contained in:
parent
f6091907cb
commit
7b22bd2ea8
@ -60,7 +60,8 @@ public:
|
||||
for ( const auto& curveDef : curveDefs )
|
||||
{
|
||||
CVF_ASSERT( !curveDef.isEnsembleCurve() );
|
||||
|
||||
if ( curveDef.summaryCase() )
|
||||
{
|
||||
m_singleSummaryCases.insert( curveDef.summaryCase() );
|
||||
|
||||
if ( curveDef.summaryCase()->ensemble() )
|
||||
@ -76,6 +77,7 @@ public:
|
||||
if ( !address.itemUiText().empty() ) m_summaryItems.insert( address );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::set<RimSummaryCase*> m_singleSummaryCases; // All summary cases used
|
||||
std::set<RimSummaryCaseCollection*> m_ensembles; // All the ensembles referenced by the summary cases
|
||||
@ -1422,6 +1424,7 @@ void RimAnalysisPlot::addDataToChartBuilder( RiuGroupedBarChartBuilder& chartBui
|
||||
|
||||
for ( const RiaSummaryCurveDefinition& curveDef : barDataDefinitions )
|
||||
{
|
||||
if ( !curveDef.summaryCase() ) continue;
|
||||
RifSummaryReaderInterface* reader = curveDef.summaryCase()->summaryReader();
|
||||
|
||||
if ( !reader ) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user