Fixing Coverity defects
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 16:19:22 +0000 (16:19 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 16:19:22 +0000 (16:19 +0000)
MUON/AliMUONCDB.cxx
MUON/AliMUONTrackerData.cxx
MUON/AliMUONTrackerIO.cxx

index df989ad..343d264 100644 (file)
@@ -1524,10 +1524,10 @@ AliMUONCDB::ShowConfig(Bool_t withStatusMap)
   
     statusMaker->SetLimits(*recoParam);
   
-    delete recoParam;
-  
     UInt_t mask = recoParam->PadGoodnessMask();
-  
+
+    delete recoParam;
+    
     const Bool_t deferredInitialization = kFALSE;
   
     statusMapMaker = new AliMUONPadStatusMapMaker(*cd,mask,deferredInitialization);
index eb6215f..ff0c925 100644 (file)
@@ -1601,7 +1601,7 @@ AliMUONTrackerData::Merge(TCollection* list)
   while ( ( o = next() ) )
   {
     const AliMUONTrackerData* data = dynamic_cast<const AliMUONTrackerData*>(o);
-    if (!o)
+    if (!data)
     {
       AliError(Form("Object named %s is not an AliMUONTrackerData ! Skipping it",
                     o->GetName()));
index c0def9f..cf3a39e 100644 (file)
@@ -484,6 +484,9 @@ AliMUONTrackerIO::DecodeCapacitances(const char* data, AliMUONVStore& capaStore)
       }      
       continue;
     }
+    
+    if (!param) continue;
+    
     Int_t channel;
     Float_t capaValue;
     Float_t injectionGain;