]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/ITSUpgradeRec/AliITSUCATrackingStation.cxx
Code cleanup and bug fix Fixed valgrind warning concerning conditional jump on undefi...
[u/mrichter/AliRoot.git] / ITS / UPGRADE / ITSUpgradeRec / AliITSUCATrackingStation.cxx
index 743790e5e4d73e3ce76356b7a3e6cfa8073e9144..04eaf4cfbb9458ef373fa4ed15327bc4fae20cf8 100644 (file)
@@ -119,6 +119,7 @@ void AliITSUCATrackingStation::Init(AliITSURecoLayer *lr, AliITSUGeomTGeo *geo)
   fBins = new ClBinInfo_t[fNZBins * fNPhiBins];
   fOccBins = new int[fNZBins * fNPhiBins];
   fNClusters = fClusters->GetEntriesFast();
+  if(fNClusters == 0) return;
   fSortedClInfo.reserve(fClusters->GetEntriesFast());
   fVIDOffset = ((AliITSUClusterPix*)fClusters->UncheckedAt(0))->GetVolumeId();
   //