mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard nullpointer access
This commit is contained in:
parent
805df93aed
commit
86bdf5722a
@ -160,7 +160,7 @@ RimWellPath* RicWellLogTools::selectedWellPathWithLogFile()
|
||||
RimWellPath* RicWellLogTools::findWellPathWithLogFileFromSelection()
|
||||
{
|
||||
RimWellPath* wellPath = caf::SelectionManager::instance()->selectedItemAncestorOfType<RimWellPath>();
|
||||
if ( wellPath->wellLogFiles().size() > 0 )
|
||||
if ( wellPath && wellPath->wellLogFiles().size() > 0 )
|
||||
{
|
||||
return wellPath;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user