]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix for coverity 20257 and warning (id number ?)
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Dec 2012 17:30:54 +0000 (17:30 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Dec 2012 17:30:54 +0000 (17:30 +0000)
STEER/CDB/AliCDBStorage.cxx
STEER/STEER/AliReconstruction.cxx

index 1ff59070537e4605aeac1fb344e49d92a8c3581f..2b036df58d3335ea62b20fd4698b2664b524032d 100644 (file)
@@ -506,11 +506,11 @@ AliCDBManager::DataType AliCDBStorage::GetDataType() const {
 //_____________________________________________________________________________
 void AliCDBStorage::SetMirrorSEs(const char* mirrors) {
 // if the current storage is not of "alien" type, just issue a warning
-// AliCDBGrid implements its own SetMirrorSEs method
+// AliCDBGrid implements its own SetMirrorSEs method, classes for other storage types do not
 
         TString storageType = GetType();
        if(storageType != "alien"){
-           AliWarning(Form("The current storage is of type \"%s\" and cannot handle SEs. Setting skipped!",storageType.Data()));
+           AliWarning(Form("The current storage is of type \"%s\". Setting of SEs to \"%s\" skipped!",storageType.Data(),mirrors));
            return;
        }
        AliError("We should never get here!! AliCDBGrid must have masked this virtual method!");
@@ -520,7 +520,7 @@ void AliCDBStorage::SetMirrorSEs(const char* mirrors) {
 //_____________________________________________________________________________
 const char* AliCDBStorage::GetMirrorSEs() const {
 // if the current storage is not of "alien" type, just issue a warning
-// AliCDBGrid implements its own GetMirrorSEs method
+// AliCDBGrid implements its own GetMirrorSEs method, classes for other storage types do not
 
         TString storageType = GetType();
        if(storageType != "alien"){
index 5ccdcc0d3a3c044f7732bccbcf398623600e3e7b..50890067919f9701086291c46906cb501409b500 100644 (file)
@@ -1777,6 +1777,10 @@ void AliReconstruction::SlaveBegin(TTree*)
   // ESD layout template in CDB
   AliCDBManager* man = AliCDBManager::Instance();
   AliCDBEntry* hltESDConfig = man->Get("HLT/Calib/esdLayout");
+  if(!hltESDConfig){
+      AliError(Form("Error getting \"HLT/Calib/esdLayout\""));
+      return;
+  }
   AliESDEvent* pESDLayout=dynamic_cast<AliESDEvent*>(hltESDConfig->GetObject());
   if (pESDLayout) {
       // init all internal variables from the list of objects