pre-emptive coverity fix
authorrbertens <rbertens@cern.ch>
Tue, 13 Jan 2015 16:05:23 +0000 (17:05 +0100)
committerrbertens <rbertens@cern.ch>
Tue, 13 Jan 2015 16:05:23 +0000 (17:05 +0100)
PWG/FLOW/Tasks/AliAnalysisTaskFlowStrangee.cxx

index 1e7a203..641b715 100644 (file)
@@ -2289,7 +2289,10 @@ void AliAnalysisTaskFlowStrangee::MakeQTPC(AliAODEvent *tAOD) {
   Int_t rawN = tAOD->GetNumberOfTracks();
   for(Int_t id=0; id!=rawN; ++id) {
     track = dynamic_cast<AliAODTrack*>(tAOD->GetTrack(id));
-    if(!track) AliFatal("Not a standard AOD");
+    if(!track) {
+        AliFatal("Not a standard AOD");
+        return;
+    }
     //=>cuts
     if(!track->TestFilterBit(fRFPFilterBit)) continue;
     if( fExcludeTPCEdges )