diff --git a/k4FWCore/components/Writer.cpp b/k4FWCore/components/Writer.cpp index 421aafe5..36477ba4 100644 --- a/k4FWCore/components/Writer.cpp +++ b/k4FWCore/components/Writer.cpp @@ -163,6 +163,11 @@ class Writer final : public Gaudi::Functional::Consumer(pReg->object())) { + if (!oldColl->collectionBase()) { + debug() << collName << " does not have a valid CollectionBase. " << collName << " will be skipped." + << endmsg; + continue; + } collType = oldColl->collectionBase()->getTypeName(); } }