mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
In Rim2dIntersectionViewCollection::syncFromExistingIntersections the branch reusing an existing view dereferenced the RimGridView ancestor without a null check, while the branch creating a new view already guarded it with "if ( view )". Intersections created without a RimGridView ancestor (for example via the gRPC/Python API on a detached intersection collection) have a null ancestor, causing a crash on the cellVisibilityChanged disconnect/connect calls. Guard these calls with the same null check used in the new-view branch and always push the existing view back into the collection.