AlgContextSvc may dereference a nullptr
I came across a case where the call in line 52 of AlgContextSvc.h
const IAlgContextSvc::Algorithms& algorithms() const override { return *m_algorithms; }
is executed when m_algorithms
is null.
I noticed that all internal usage of m_algorithms
in AlgContextSvc.cpp is protected against nullptr.
A possible solution w/o interface change could be an empty default-instance of IAlgContextSvc::Algorithms
(a typedef of std::vector<IAlgorithm*>
that gets returned in case m_algorithms
is null.