Coverity 19790
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Apr 2012 11:58:03 +0000 (11:58 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Apr 2012 11:58:03 +0000 (11:58 +0000)
PWG/muon/AliAnalysisMuMuFromESD.cxx

index ce4a92c..c7c76b8 100644 (file)
@@ -267,6 +267,8 @@ Bool_t AliAnalysisMuMuFromESD::TrackChi2(const AliESDMuonTrack& track) const
 Double_t AliAnalysisMuMuFromESD::CorrectedDCA(const AliESDMuonTrack& track) const
 {
   /// Get corrected DCA of the track
+
+  if (!fVertex) return -999.;
   
   TVector3 eventVertex(fVertex->GetX(),fVertex->GetY(),fVertex->GetZ());