mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#12313 Investigate null pointer when destructing RimProject
Fixes #12313.
This commit is contained in:
1 parent
b074d6e14e
commit
895148e4ef
1 file changed
+4
@@ -632,6 +632,10 @@ std::vector<RimCase*> RimProject::allGridCases() const
|
||||
|
||||
for ( RimEclipseCaseEnsemble* ensemble : analysisModels->caseEnsembles() )
|
||||
{
|
||||
// The ensemble can be null if this function is called while the ensembles are being deleted,
|
||||
// as PdmPointer entries in the child array field are nulled one by one during deletion.
|
||||
if ( ensemble == nullptr ) continue;
|
||||
|
||||
for ( RimEclipseCase* acase : ensemble->cases() )
|
||||
{
|
||||
cases.push_back( acase );
|
||||
|
||||
Reference in new issue
Block a user