From 255f9d3e5c1f17a92d87a5eb5e9ef7647969418e Mon Sep 17 00:00:00 2001 From: Artur Furs <9881239+afurs@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:01:36 +0300 Subject: [PATCH] FT0: hotfix for postproc (#2427) --- Modules/FIT/Common/include/FITCommon/PostProcHelper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/FIT/Common/include/FITCommon/PostProcHelper.h b/Modules/FIT/Common/include/FITCommon/PostProcHelper.h index 48ff2cb01e..5d4c335fd9 100644 --- a/Modules/FIT/Common/include/FITCommon/PostProcHelper.h +++ b/Modules/FIT/Common/include/FITCommon/PostProcHelper.h @@ -113,11 +113,12 @@ class PostProcHelper mIsNonEmptySample = false; } // Getting timestamp + mTimestampAnchor = -1; if (mTimestampSource == "trigger") { mTimestampAnchor = mCurrTrigger.timestamp; } else if (mTimestampSource == "validUntil") { mTimestampAnchor = mCurrTrigger.activity.mValidity.getMax(); - } else if (mTimestampSource == "metadata") { + } else if (moMetadata && mTimestampSource == "metadata") { const auto iterMetadata = moMetadata->getMetadataMap().find(mTimestampMetaField); const bool isFound = iterMetadata != moMetadata->getMetadataMap().end(); if (isFound) {