message: Add protection for hardest particle
diff: @@ -228,6 +228,7 @@ bool AliAnalysisTaskEmcalJetSpectrumSDPart::Run()
  if(fMCPartonInfo) {
  auto hardest = fMCPartonInfo->GetHardestParton();
  + if(hardest) {
  auto hardestpt = hardest->GetMomentum().Pt();
  fHistos->FillTH1("fHardPartonPt", hardestpt);
  if(TMath::Abs(fPtHard) > 1e-5) fHistos->FillTH1("fFracHardPartonPt", hardestpt/fPtHard);
  @@ -239,6 +240,7 @@ bool AliAnalysisTaskEmcalJetSpectrumSDPart::Run()
  if(TMath::Abs(fPtHard) > 1e-5) fHistos->FillTH1("fFracHardQuarkPt", hardestpt/fPtHard);
  }
  }
  + }
  // check MC event directly
  int nphysprim(0), nsecondary(0);
  