]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/CALO/AliHLTCaloRecoParamHandler.cxx
- fixing warnings/coverity
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloRecoParamHandler.cxx
index 75232a7071eedb2e630e7b1d8a7a42fe3ea9d211..4c6176d471af2e48df1df7b5e9ebfd59cb8f4bc5 100644 (file)
@@ -52,14 +52,17 @@ Int_t AliHLTCaloRecoParamHandler::GetParametersFromCDB()
       AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(fRecoParamPath/*,GetRunNo()*/);
       if (pEntry) 
        {
+           
            TObjArray *paramArray = dynamic_cast<TObjArray*>(pEntry->GetObject());
-           fRecoParamPtr = dynamic_cast<AliDetectorRecoParam*>((paramArray)->At(0));
-         
+           if(paramArray)
+             {
+               fRecoParamPtr = dynamic_cast<AliDetectorRecoParam*>((paramArray)->At(0));
+             }
            if(!fRecoParamPtr)
-           {
-              HLTError("can not fetch object reconstruction parameters from \"%s\"", fRecoParamPath.GetPath().Data());
-              return -1;
-           }
+             {
+               HLTError("can not fetch object reconstruction parameters from \"%s\"", fRecoParamPath.GetPath().Data());
+               return -1;
+             }
        }
       else
        {