diff --git a/hecl/driver/ToolExtract.hpp b/hecl/driver/ToolExtract.hpp index 913648991..a8d6d6e13 100644 --- a/hecl/driver/ToolExtract.hpp +++ b/hecl/driver/ToolExtract.hpp @@ -28,10 +28,13 @@ public: for (const HECL::Database::DataSpecEntry* entry : HECL::Database::DATA_SPEC_REGISTRY) { HECL::Database::IDataSpec* ds = entry->m_factory(HECL::Database::TOOL_EXTRACT); - if (ds->canExtract(m_einfo, m_reps)) - m_dataSpecs.emplace_back(ds); - else - delete ds; + if (ds) + { + if (ds->canExtract(m_einfo, m_reps)) + m_dataSpecs.emplace_back(ds); + else + delete ds; + } } } @@ -69,12 +72,12 @@ public: for (int l=0 ; l