Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ANALYSIS / AliVZEROEPSelectionTask.cxx
index f40416b..19f6370 100644 (file)
@@ -126,7 +126,7 @@ void AliVZEROEPSelectionTask::UserExec(Option_t */*option*/)
   AliCentrality *centrality = event->GetCentrality();
   Float_t percentile = (fUseVZEROCentrality) ? centrality->GetCentralityPercentile("V0M") : centrality->GetCentralityPercentile("CL1");
   AliEventplane *esdEP = event->GetEventplane();
-  SetEventplaneParams(esdEP,percentile);
+  if(esdEP) SetEventplaneParams(esdEP,percentile);
 }
 
 //________________________________________________________________________