#14778 Fix crashes from unguarded pointer and index accesses

* Skip deleted plot widgets in RiuMultiPlotBook::visiblePlotWidgets
* Guard missing calculation in detectCyclicCalculation
* Guard invalid node index in RigFemPart node lookups
* Guard null well path in RimWellLogExtractionCurve::extractGeomData
* Guard unopened case in RimGridCalculation::removeDependentObjects
* Guard empty subset in createLateralAtMeasuredDepth
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2026-09-22 08:23:00 +02:00
1 parent 4d2a868079
commit 3437cf9b94
12 files changed
+129 -14

No files matched your search

@@ -621,7 +621,7 @@ RimWellLogExtractionCurve::WellLogExtractionCurveData
if ( maxDistanceBetweenCurvePoints.has_value() && maxDistanceBetweenCurvePoints.value() > 0.0 )
{
RigGeoMechCaseData* caseData = geoMechCase->geoMechData();
auto wellPathGeometry = m_wellPath->wellPathGeometry();
auto wellPathGeometry = m_wellPath ? m_wellPath->wellPathGeometry() : nullptr;
if ( caseData && wellPathGeometry )
{
std::string errorIdName = ( m_wellPath->name() + " " + geoMechCase->caseUserDescription() ).toStdString();