corrected warning
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Jun 2010 13:52:43 +0000 (13:52 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Jun 2010 13:52:43 +0000 (13:52 +0000)
PWG3/vertexingHF/AliRDHFCutsD0toKpi.cxx

index 70a560b178491bc15a2e85e9db8551e4f22f7c4e..8816fbcd54e666300d431ec01f5d90080e8f241d 100644 (file)
@@ -315,7 +315,7 @@ Int_t AliRDHFCutsD0toKpi::IsSelectedPID(AliAODRecoDecayHF* rd) const {
   // (return: 0 not sel, 1 only D0, 2 only D0bar, 3 both)
   //
 
-  if(!fUsePID) return 3;
+  if(!fUsePID || !rd) return 3;
 
   Int_t returnvalue=0;