Skip to content

Commit

Permalink
[hist] prevent nullptr access
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdymercury authored and guitargeek committed Apr 4, 2024
1 parent 89f9d95 commit 8dd71ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hist/hist/src/TF1NormSum.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ TF1NormSum::TF1NormSum(const TString &formula, Double_t xmin, Double_t xmax)
if (!functions[i])
Error("TF1NormSum", "Function %s does not exist", funcstringall[k].Data());
// (set range for first function, which determines range of whole TF1NormSum)
if (i == 0) {
else if (i == 0) {
functions[i]->GetRange(old_xmin, old_xmax);
functions[i]->SetRange(xmin, xmax);
}
Expand Down

0 comments on commit 8dd71ea

Please sign in to comment.