fix coverity
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Oct 2010 09:02:21 +0000 (09:02 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Oct 2010 09:02:21 +0000 (09:02 +0000)
TRD/AliTRDtrackerDebug.cxx

index 117d675..4c7c2b4 100644 (file)
@@ -272,7 +272,9 @@ void AliTRDtrackerDebug::ResidualsTrackletsTrack() const
       dzdx = tracklet[ip].GetZref(1);
 
     // restore tracklet
-    tracklet[ip] = (*fTrack->GetTracklet(ip)); 
+    AliTRDseedV1 *ptr(NULL);
+    if(!(ptr = fTrack->GetTracklet(ip))) continue;
+    tracklet[ip] = (*ptr);
 //             for(int ic=0; ic<AliTRDseedV1:knTimebins; ic++){
 //                     if(!(c = tracklet[ip].GetClusters(ic))) continue;
 //                     Double_t xc = c->GetX(), yc = c->GetY(), zc = c->GetZ();