]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix
authorprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Sep 2011 05:51:15 +0000 (05:51 +0000)
committerprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Sep 2011 05:51:15 +0000 (05:51 +0000)
PWG4/UserTasks/PHOS_embedding/AliPHOSEmbedding.cxx

index 2f68c17c8741921519caba3afb2e43f7cf5b3b0d..b0a5196645d3e03e537afdccf989c7d12d649fcd 100644 (file)
@@ -174,6 +174,10 @@ void AliPHOSEmbedding::Init(){
   fPHOSReconstructor = new AliPHOSReconstructor() ;
   AliCDBPath path("PHOS","Calib","RecoParam");
   AliCDBEntry *entry=AliCDBManager::Instance()->Get(path.GetPath());
+  if(!entry){
+    AliError(Form("Can not get OCDB entry %s",path.GetPath().Data())) ;
+    return ;
+  }
   
   TObjArray* recoParamArray = (TObjArray*)entry->GetObject();
   AliPHOSRecoParam* recoParam = (AliPHOSRecoParam*)recoParamArray->At(2);