Skip to content
Snippets Groups Projects
Commit 70582c4d authored by Joana Plewnia's avatar Joana Plewnia
Browse files

fixed wrong equality check in aron data

parent 92d43a42
No related branches found
No related tags found
No related merge requests found
Pipeline #22530 failed
......@@ -73,10 +73,21 @@ namespace armarx::aron::data
}
if (!nav)
{
return !((bool)other.getElement(key));
bool other_none = !((bool)other.getElement(key));
if (!other_none)
{
//this means the other element has a non-(None) value
return false;
}
else
{
//otherwise continue with other checks
continue;
}
}
if (not(*nav == *other.getElement(key)))
{
ARMARX_DEBUG << "Unequal: " << key;
return false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment