From d0b7b49a9a91574be70eb89e26e316078166a6d0 Mon Sep 17 00:00:00 2001 From: MALFREYT <alexandre.malfreyt@synchrotron-soleil.fr> Date: Wed, 23 Apr 2025 15:01:37 +0200 Subject: [PATCH] fix: handle empty boardType in get_device_property() to improve error handling --- src/SingleShotAO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SingleShotAO.cpp b/src/SingleShotAO.cpp index d02281c..f00de3a 100755 --- a/src/SingleShotAO.cpp +++ b/src/SingleShotAO.cpp @@ -796,7 +796,7 @@ void SingleShotAO::get_device_property() //- <BoardType> ----------------------- // Case 1 (error): boardType is set to the default value in the database - if (boardType == boardType_default) + if (boardType == boardType_default || boardType == "") { errorMessages << "Device property <BoardType> is not set (default value " << boardType_default << " needs to be replaced)" << endl; critical_properties_missing = true; -- GitLab