Fixed check of returned pointer to AliStack object
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2013 09:31:26 +0000 (09:31 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2013 09:31:26 +0000 (09:31 +0000)
PWGLF/FORWARD/analysis2/AliMCAuxHandler.cxx

index e6ba89a..28d2687 100644 (file)
@@ -344,7 +344,7 @@ AliMCAuxHandler::GetParticleArray(AliMCAuxHandler* handler,
   }
   
   AliStack* stack = event->Stack();
-  if (!event) { 
+  if (!stack) { 
     ::Error("AliMCAuxHandler::GetArray", "Event has no stack");
     return 0;
   }