Protection needed in case of kinematics-only-analysis.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 13:44:04 +0000 (13:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 13:44:04 +0000 (13:44 +0000)
ANALYSIS/AliAnalysisTaskSE.cxx

index c2b82ca..566c03b 100644 (file)
@@ -320,7 +320,7 @@ void AliAnalysisTaskSE::Exec(Option_t* option)
   
 
 // Notify the change of run number
-    if (InputEvent()->GetRunNumber() != fCurrentRunNumber) {
+    if (InputEvent() && (InputEvent()->GetRunNumber() != fCurrentRunNumber)) {
        fCurrentRunNumber = InputEvent()->GetRunNumber();
        NotifyRun();
     }