Skip to content

Commit

Permalink
Merge pull request #34769 from iarspider/patch-7
Browse files Browse the repository at this point in the history
[GCC 11] Fix error "this pointer is null" in PhysicsTools/FWLite
  • Loading branch information
cmsbuild authored Aug 5, 2021
2 parents bca8dac + 4a02c25 commit 0457bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/FWLite/interface/Scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ namespace fwlite {
if (htemplate != nullptr) {
if ((strcmp(hname, "htemp") == 0) && (strcmp(hname, htemplate->GetName()) != 0))
htempDelete();
hist = (TH1 *)hist->Clone(hname);
hist = (TH1 *)htemplate->Clone(hname);
} else if (drawopt.Contains("SAME", TString::kIgnoreCase)) {
hist = getSameH1(hname);
}
Expand Down

0 comments on commit 0457bc7

Please sign in to comment.