diff --git a/DataQuality/DataQualityUtils/src/MonitoringFile.cxx b/DataQuality/DataQualityUtils/src/MonitoringFile.cxx
index 2e4405c451c1978c99545b2b835c237d7f84f5ea..0aec7785febbbd9a4724849644c0570be094584a 100644
--- a/DataQuality/DataQualityUtils/src/MonitoringFile.cxx
+++ b/DataQuality/DataQualityUtils/src/MonitoringFile.cxx
@@ -352,6 +352,7 @@ namespace dqutils {
     const TH1* b1 = dynamic_cast<const TH1*>(b);
     if (!a1 || !b1) {
       std::cout << "ERROR, in merge_rebinned: Object not of type TH1";
+      return;
     }
     TH1* b2 = const_cast<TH1*>(b1);
     dqutils::MonitoringFile::merge_Rebinned(*a1, *b2);
@@ -363,6 +364,7 @@ namespace dqutils {
     const TH2* b1 = dynamic_cast<const TH2*>(b);
     if (!a1 || !b1) {
       std::cout << "ERROR in merge_eventSample: Object not of type TH2" << std::endl;
+      return;
     }
     dqutils::MonitoringFile::merge_eventSample(*a1, *b1);
   }
@@ -373,6 +375,7 @@ namespace dqutils {
     TEfficiency* b2 = const_cast<TEfficiency*>(b1);
     if (!a1 || !b1) {
       std::cout << "ERROR in merge_TEfficiency: Object not of type TEfficiency" << std::endl;
+      return;
     }
     TList listE;
     listE.Add(b2);
diff --git a/LArCalorimeter/LArCafJobs/src/LArShapeDumper.cxx b/LArCalorimeter/LArCafJobs/src/LArShapeDumper.cxx
index 8240ba481b36622ee6ca0bc48bbd5cff4acf9f11..6ff79f312fdcaea8d2b278d006659bb24bdda6cc 100755
--- a/LArCalorimeter/LArCafJobs/src/LArShapeDumper.cxx
+++ b/LArCalorimeter/LArCafJobs/src/LArShapeDumper.cxx
@@ -48,6 +48,7 @@ LArShapeDumper::LArShapeDumper(const std::string & name, ISvcLocator * pSvcLocat
   m_nNoDigits(0),
   m_nNoDigitsSC(0),
   m_onlineHelper(nullptr),
+  m_onlineHelperSC(nullptr),
   m_doEM(false),
   m_doHEC(false),
   m_doFCAL(false),