Skip to content

Commit

Permalink
get valid subscription handle even if cft not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <[email protected]>
  • Loading branch information
Chen Lihui committed Feb 27, 2023
1 parent 1bf9e7a commit 7e6d2c3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rmw_fastrtps_cpp/src/subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,13 @@ create_subscription(
subscription_options->content_filter_options;
if (nullptr != options->filter_expression) {
eprosima::fastdds::dds::ContentFilteredTopic * filtered_topic = nullptr;
if (!rmw_fastrtps_shared_cpp::create_content_filtered_topic(
if (rmw_fastrtps_shared_cpp::create_content_filtered_topic(
dds_participant, des_topic,
topic_name_mangled, options, &filtered_topic))
{
RMW_SET_ERROR_MSG("create_contentfilteredtopic() failed to create contentfilteredtopic");
return nullptr;
info->filtered_topic_ = filtered_topic;
des_topic = filtered_topic;
}
info->filtered_topic_ = filtered_topic;
des_topic = filtered_topic;
}
}

Expand Down

0 comments on commit 7e6d2c3

Please sign in to comment.