We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bd3fe commit d382caeCopy full SHA for d382cae
include/behaviortree_cpp/scripting/operators.hpp
@@ -381,7 +381,7 @@ struct ExprAssignment : ExprBase
381
{
382
// special case first: string to other type
383
// check if we can use the StringConverter
384
- if(value.isString() && !any_ptr->isString())
+ if(value.isString() && !any_ptr->empty() && !any_ptr->isString())
385
386
auto const str = value.cast<std::string>();
387
if(auto converter = env.vars->portInfo(key)->converter())
0 commit comments