Skip to content

Commit 8510576

Browse files
committed
add warning for special case
1 parent 6c76343 commit 8510576

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGCF/GenericFramework/Core/FlowContainer.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,10 @@ TH1D* FlowContainer::GetHistCorrXXVsMulti(const char* order, int l_pti)
455455
TH1D* FlowContainer::GetHistCorrXXVsPt(const char* order, double lminmulti, double lmaxmulti)
456456
{
457457
TH1D* rethist = GetCorrXXVsPt(order, lminmulti, lmaxmulti);
458+
if (!rethist) {
459+
printf("GetCorrXXVsPt return nullptr!");
460+
return nullptr;
461+
}
458462
TProfile* refflow = GetRefFlowProfile(order, lminmulti, lmaxmulti);
459463
if (refflow) {
460464
refflow->RebinX(refflow->GetNbinsX());

0 commit comments

Comments
 (0)