NULL pointer protection added
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 12:53:53 +0000 (12:53 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 12:53:53 +0000 (12:53 +0000)
HLT/TPCLib/comp/AliHLTTPCCompModelAnalysis.cxx

index d04d847..59fbb7f 100644 (file)
@@ -243,6 +243,8 @@ Int_t AliHLTTPCCompModelAnalysis::CompareTracks()
   // take track from first tracking,
   for(Int_t ii=0; ii < firsttracks; ii++)
     {
+      if (fFirstTrackArray.GetCheckedTrack(ii)==NULL) continue;
+
       // build track list for all tracks in first array
       // FIXME: I can't find the cleanup of the linked list fFirstTrackList
       AliHLTTPCTrackList* currenttrackentry = new AliHLTTPCTrackList;