Skip to content
Snippets Groups Projects
Commit 65027c47 authored by Christoph Pohl's avatar Christoph Pohl Committed by ARMAR-DE
Browse files

Check if enum type or data is null

parent 92277781
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,12 @@ namespace armarx::aron
type::IntEnumPtr enumType = type::IntEnum::DynamicCast(type);
data::IntPtr enumData = data::Int::DynamicCast(data);
if (enumType == nullptr or enumData == nullptr)
{
ARMARX_WARNING << "Enum Type or Data is NULL";
return;
}
std::string name = enumType->getValueName(enumData->getValue());
value << name;
}
......
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