From 61bb933924754070d4a2e0da9bb17ee8ff8dfab8 Mon Sep 17 00:00:00 2001 From: payetvin <113102157+payetvin@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:20:13 +0100 Subject: [PATCH] Add a warning if sts group property is empty [ANT-2026] (#2534) --- .../antares/study/parts/short-term-storage/properties.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/antares/study/parts/short-term-storage/properties.cpp b/src/libs/antares/study/parts/short-term-storage/properties.cpp index 3805b239a2..cbed02122e 100644 --- a/src/libs/antares/study/parts/short-term-storage/properties.cpp +++ b/src/libs/antares/study/parts/short-term-storage/properties.cpp @@ -213,6 +213,12 @@ bool Properties::validate() << " should be inferior to 1, value has been set to " << initialLevel; } + if (groupName.empty()) + { + logs.warning() << "Group name is empty for short term storage " << name; + return false; + } + return true; }