Fixes reported by coverity: 21890 and 21889
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 13:54:32 +0000 (13:54 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 13:54:32 +0000 (13:54 +0000)
EVE/EveBase/AliEveEventManager.cxx
EVE/EveBase/AliEveEventSelector.cxx

index 941aaa1..0f184c7 100644 (file)
@@ -680,8 +680,8 @@ Int_t AliEveEventManager::GetMaxEventId(Bool_t refreshESD) const
     {
         if (refreshESD)
         {
-            if(fESDTree) fESDTree->Refresh();
-            if(fHLTESDTree) fHLTESDTree->Refresh();
+            if(fESDTree!=0) fESDTree->Refresh();
+            if(fHLTESDTree!=0) fHLTESDTree->Refresh();
             fPEventSelector->Update();
         }
 
index c72387a..a548710 100644 (file)
@@ -60,8 +60,8 @@ void AliEveEventSelector::SetSelectionString( const TString& str )
     fString = str;
     if (str == "" ) return;//on reset don't recalculate
 
-    if(pESDTree)    pESDTree->Draw( ">>listofentries", fString, "entrylist");
-    if(pHLTESDTree) pESDTree->Draw( ">>listofentries", fString, "entrylist");
+    if(pESDTree!=0)    pESDTree->Draw( ">>listofentries", fString, "entrylist");
+    if(pHLTESDTree!=0) pHLTESDTree->Draw( ">>listofentries", fString, "entrylist");
 
     fPEntryList = dynamic_cast<TEntryList*>(gDirectory->Get("listofentries"));
 }