Page MenuHomePhabricator

D4137.id.diff
No OneTemporary

D4137.id.diff

diff --git a/services/tunnelbroker/src/Tools/ConfigManager.cpp b/services/tunnelbroker/src/Tools/ConfigManager.cpp
--- a/services/tunnelbroker/src/Tools/ConfigManager.cpp
+++ b/services/tunnelbroker/src/Tools/ConfigManager.cpp
@@ -94,7 +94,14 @@
throw std::runtime_error(
"ConfigManager Error: config parameter " + param + " is not set.");
}
- return this->variablesMap[param].as<std::string>();
+ const std::string parameterValue =
+ this->variablesMap[param].as<std::string>();
+ if (parameterValue.empty()) {
+ throw std::runtime_error(
+ "ConfigManager Error: config parameter " + param +
+ " can not be empty.");
+ }
+ return parameterValue;
}
} // namespace config

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 9:19 AM (3 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2440665
Default Alt Text
D4137.id.diff (720 B)

Event Timeline