From 796fc8e49425bf3df4e7ea09b8426e672d3f0939 Mon Sep 17 00:00:00 2001 From: Ernst Hellbar Date: Tue, 28 Oct 2025 18:04:17 +0100 Subject: [PATCH] GLO: fix segfault if K0s background fit failed --- Modules/GLO/include/GLO/Helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/GLO/include/GLO/Helpers.h b/Modules/GLO/include/GLO/Helpers.h index 4a4a5acc58..18c1693cbf 100644 --- a/Modules/GLO/include/GLO/Helpers.h +++ b/Modules/GLO/include/GLO/Helpers.h @@ -97,7 +97,7 @@ struct K0sFitter { if (bgResult.Get() == nullptr || bgResult->Status() != 0) { ILOG(Warning, Devel) << "Failed k0s background fit for histogram: " << h->GetName() - << " (status=" << (bgResult ? bgResult->Status() : -1) << ")" + << " (status=" << (bgResult.Get() ? bgResult->Status() : -1) << ")" << ENDM; return false; }