Skip to content
Snippets Groups Projects
Commit 7fe56c22 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

fix skill observer missing include. Fix RobotStateMemory SegFault if aron in...

fix skill observer missing include. Fix RobotStateMemory SegFault if aron in memory is null or not a dict (actually this should never happen. Dont know why this is happening here...)
parent d671749a
No related branches found
No related tags found
1 merge request!184moved aron test xmls to aron folder, used autoinclude for some. Reenabled...
......@@ -23,6 +23,10 @@
#pragma once
#include <thread>
#include <string>
#include <vector>
#include <mutex>
#include <map>
#include <ArmarXCore/core/Component.h>
......
......@@ -46,6 +46,17 @@ namespace armarx::armem
static_assert(std::is_base_of<armarx::aron::cppserializer::AronCppClass,
AronClass>::value);
if (!item.data())
{
return std::nullopt;
}
if (item.data()->getDescriptor() != aron::data::Descriptor::eDict)
{
return std::nullopt;
}
try
{
AronClass t;
......
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