Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Jun 2005 21:10:06 +0000 (21:10 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Jun 2005 21:10:06 +0000 (21:10 +0000)
ITS/AliITStrackerV2.cxx

index 1f0c09f73a287b0aafe121368913fceacb1b82ce..44375b53cebf6210327cb5fd76b82764065a9b1c 100644 (file)
@@ -1065,8 +1065,8 @@ void AliITStrackerV2::UseClusters(const AliKalmanTrack *t, Int_t from) const {
   AliTracker::UseClusters(t,from);
 
   AliITSclusterV2 *c=(AliITSclusterV2 *)GetCluster(t->GetClusterIndex(0));
-  if (c->GetSigmaZ2()>0.1) c->UnUse();
+  if (c && c->GetSigmaZ2()>0.1) c->UnUse();
   c=(AliITSclusterV2 *)GetCluster(t->GetClusterIndex(1));
-  if (c->GetSigmaZ2()>0.1) c->UnUse();
+  if (c && c->GetSigmaZ2()>0.1) c->UnUse();
 
 }