mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5102 Janitor : Guard null pointer access
This commit is contained in:
@@ -44,6 +44,7 @@ bool RicPasteWellLogTrackFeature::isCommandEnabled()
|
||||
|
||||
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(
|
||||
caf::SelectionManager::instance()->selectedItem() );
|
||||
if ( !destinationObject ) return false;
|
||||
|
||||
RimWellLogPlot* wellLogPlot = nullptr;
|
||||
RimWellRftPlot* rftPlot = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user