Skip to content

Commit

Permalink
crash on no class found
Browse files Browse the repository at this point in the history
  • Loading branch information
Aposhian committed Jan 25, 2024
1 parent a29f58e commit ba9e80e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rclcpp_components/src/node_main.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ int main(int argc, char * argv[])
}
}

if (exec.get_all_callback_groups().empty()) {
throw std::runtime_error("No matching class found");
}

loaders.push_back(loader);


exec.spin();

for (auto wrapper : node_wrappers) {
Expand Down

0 comments on commit ba9e80e

Please sign in to comment.