From 89bd21df488c030c70ce5c3416988c648601727f Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 16 Dec 2024 14:40:25 +0100 Subject: [PATCH] Add a warning if sts group property is empty --- .../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; }