Fixing FORWARD_NULL defects reported by Coverity
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 18:09:30 +0000 (18:09 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 18:09:30 +0000 (18:09 +0000)
MUON/AliMUONTrackerDataMaker.cxx

index d61a34e..f6d004b 100644 (file)
@@ -531,7 +531,7 @@ Long64_t AliMUONTrackerDataMaker::Merge(TCollection* list)
   while ( ( o = next() ) )
   {
     const AliMUONTrackerDataMaker* data = dynamic_cast<const AliMUONTrackerDataMaker*>(o);
-    if (!o)
+    if (!data)
     {
       AliError(Form("Object named %s is not an AliMUONTrackerDataMaker ! Skipping it",
                     o->GetName()));