Skip to content

Commit

Permalink
Refs #14615. Assertion on dynamic_cast result.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Jun 21, 2022
1 parent 8af4751 commit 9ab899a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpp/fastdds/domain/DomainParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ ReturnCode_t DomainParticipantImpl::delete_topic(
assert(it != topics_.end() && "Topic found by handle but factory not found");

TopicProxy* proxy = dynamic_cast<TopicProxy*>(topic->get_impl());
assert(nullptr != proxy);
auto ret_code = it->second->delete_topic(proxy);
if (ReturnCode_t::RETCODE_OK == ret_code)
{
Expand Down

0 comments on commit 9ab899a

Please sign in to comment.