]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTrackFitter.cxx
Bugfixes and additional protection (Cvetan and Marian)
[u/mrichter/AliRoot.git] / STEER / AliTrackFitter.cxx
index 4eec5c81d52e00299762209bc21724f0886a4ae7..5ca611f6c2ddad7582aa578050e835cc409be501 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "AliTrackFitter.h"
 #include "AliTrackPointArray.h"
+#include "AliLog.h"
 
 ClassImp(AliTrackFitter)
 
@@ -114,7 +115,12 @@ void AliTrackFitter::SetTrackPointArray(AliTrackPointArray *array, Bool_t owner)
   // Load space points from array
   // By default we don't copy them but
   // just put the pointers to them
-  if (!array) return;
+  if (!array) {
+    AliWarning("Invalid pointer to the space-points array !");
+    if (fIsOwner) delete fPoints;
+    fPoints = NULL;
+    return;
+  }
 
   Reset();