Bug fix - Teminate - as virtula function
[u/mrichter/AliRoot.git] / TPC / AliTPCTracklet.cxx
index fa26cf603803f79b8a3124862fe65ec887e7c969..50945116103f589ecb929e10e712281e78665f90 100755 (executable)
@@ -239,7 +239,7 @@ void AliTPCTracklet::FitKalman(const AliTPCseed *track,Int_t sector) {
       fPrimary=new AliExternalTrackParam(*primarySeed);
     delete primarySeed;
     // for better comparison one does not want to have alpha changed...
-    if (!fPrimary->Rotate(fInner->GetAlpha())) {
+    if (fPrimary) if (!fPrimary->Rotate(fInner->GetAlpha())) {
       delete fPrimary;
       fPrimary=0;
     }