mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 16:40:20 -05:00
RimEclipseView::onLoadDataAndUpdate() can be called again after a failed grid load has cleared the view's eclipse case (RicNewViewFeature calls loadDataAndUpdate once more after the view is added). On that second call the open guard is skipped because eclipseCase() is already null, and the method then dereferences eclipseCase() directly via dataFilterCollection(), crashing with a null this pointer. Return early when eclipseCase() is null after the open block, since there is nothing to load without a case.