mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Selecting a contour map projection in the tree could crash when the associated legend config was null. RimContourMapProjection::defineUiOrdering called legendConfig()->uiOrdering() unguarded. Because PdmUiObjectHandle::uiOrdering is non-virtual, the call entered with a null this and then crashed on the virtual defineUiOrdering dispatch. Guard the legendConfig() dereference, matching the existing null checks elsewhere in the file. Apply the same guard to RimEclipseCellColors::defineUiOrdering.