Commit 1c6ce1fd authored by legoc's avatar legoc
Browse files

Variable command box logs error if variable is empty

parent 6a052ab8
......@@ -142,6 +142,11 @@ void VariableCommandBox::setInsideForLoop() {
void VariableCommandBox::executeCommand() {
if (m_variableName == "") {
LogHandler::getInstance()->write(SimpleLog(common::LOG_ERROR, "Set variable error: cannot set empty variable to " + m_expression));
return;
}
try {
core::UserVariableManager::getInstance()->editUserVariable(m_variableName, m_expression);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment