mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Fix crashes when reading an odb file fails due to corruption
This commit is contained in:
@@ -147,6 +147,8 @@ void RimCellRangeFilter::setDefaultValues()
|
||||
|
||||
const cvf::StructGridInterface* grid = selectedGrid();
|
||||
|
||||
if (!grid) return;
|
||||
|
||||
Rim3dView* rimView = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted(rimView);
|
||||
RigActiveCellInfo* actCellInfo = RigReservoirGridTools::activeCellInfo(rimView);
|
||||
@@ -208,6 +210,8 @@ void RimCellRangeFilter::defineEditorAttribute(const caf::PdmFieldHandle* field,
|
||||
}
|
||||
|
||||
const cvf::StructGridInterface* grid = selectedGrid();
|
||||
|
||||
if (!grid) return;
|
||||
|
||||
if (field == &startIndexI || field == &cellCountI)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user