more coverity fixes (M. Verweij)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 08:38:00 +0000 (08:38 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 08:38:00 +0000 (08:38 +0000)
PWG4/JetTasks/AliPWG4HighPtQAMC.cxx
PWG4/JetTasks/AliPWG4HighPtSpectra.cxx

index 9781a473176a5215e583765d4168904b97bb2d2b..05b0bc2e285281b94111bfb6cec302a991725072 100644 (file)
@@ -676,6 +676,8 @@ void AliPWG4HighPtQAMC::Exec(Option_t *) {
     }
     else
       track = esdtrack;
+
+    if(!track) continue;
     
     if(fTrackType==2) {
       //Cut on chi2 of constrained fit
index c5714bb02a30d9d337a2e08d71c47d5a494846b9..f425ab4a5ff1733e023d29a76c6475f72528de99 100644 (file)
@@ -391,6 +391,7 @@ void AliPWG4HighPtSpectra::Exec(Option_t *)
       else
        track = esdtrack;
     
+      if(!track) continue;
  
       if(fTrackType==2) {
        //Cut on chi2 of constrained fit