From 3c9974f262c89b80e27ef1640db02d0cc013944a Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Wed, 18 Sep 2024 13:01:13 +0200 Subject: [PATCH] Refs #21652: Fix segfault Signed-off-by: JesusPoderoso --- examples/cpp/xtypes/PublisherApp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cpp/xtypes/PublisherApp.cpp b/examples/cpp/xtypes/PublisherApp.cpp index b4ac99fced6..52c4006b42c 100644 --- a/examples/cpp/xtypes/PublisherApp.cpp +++ b/examples/cpp/xtypes/PublisherApp.cpp @@ -242,6 +242,7 @@ DynamicType::_ref_type PublisherApp::create_type( { std::cout << "Error getting dynamic type \"HelloWorld\"." << std::endl; + return nullptr; } } else