Skip to content

Commit 657163c

Browse files
ehellbarBarthelemy
authored andcommitted
GLO: fix segfault if K0s background fit failed (#2618)
1 parent d4491b8 commit 657163c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/GLO/include/GLO/Helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct K0sFitter {
9797
if (bgResult.Get() == nullptr || bgResult->Status() != 0) {
9898
ILOG(Warning, Devel) << "Failed k0s background fit for histogram: "
9999
<< h->GetName()
100-
<< " (status=" << (bgResult ? bgResult->Status() : -1) << ")"
100+
<< " (status=" << (bgResult.Get() ? bgResult->Status() : -1) << ")"
101101
<< ENDM;
102102
return false;
103103
}

0 commit comments

Comments
 (0)