adding NULL pointer protection
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 08:41:54 +0000 (08:41 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 08:41:54 +0000 (08:41 +0000)
HLT/TPCLib/comp/AliHLTTPCCompModelAnalysis.cxx

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