Skip to content

Commit d123b9b

Browse files
author
Javier Gil Aviles
committed
Refs #21358: Delate assert(false) and add log error
Signed-off-by: Javier Gil Aviles <javiergil@eprosima.com>
1 parent abd16d8 commit d123b9b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ class DynamicDataImpl : public traits<DynamicData>::base_type
493493

494494
if (!sm_impl)
495495
{
496+
EPROSIMA_LOG_ERROR(DYNAMIC_DATA,
497+
"Null DynamicTypeMemberImpl pointer for member id " << selected_union_member_);
496498
return false;
497499
}
498500

src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderImpl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ DynamicTypeBuilderImpl::DynamicTypeBuilderImpl(
6161
members_.back())};
6262
if (!member_impl)
6363
{
64-
assert(false);
6564
EPROSIMA_LOG_ERROR(DYN_TYPES,
6665
"Internal error: last member is not a DynamicTypeMemberImpl.");
6766
}

0 commit comments

Comments
 (0)