adding else statement in case the grid query returns no result
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2012 09:49:55 +0000 (09:49 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2012 09:49:55 +0000 (09:49 +0000)
STEER/CDB/AliCDBGrid.cxx

index 072b533..6bd3a40 100644 (file)
@@ -463,7 +463,10 @@ AliCDBId* AliCDBGrid::GetEntryId(const AliCDBId& queryId) {
                                                validFileIds.AddLast(validFileId.Clone());
                        }
                        delete res;
-               }       
+               }else{
+                   return 0; // this should be only in case of file catalogue glitch
+               }
+
                dataId = GetId(validFileIds, selectedId);
        }