From ac2f5dade49e7e565ed877509bf8d836ae0eadb2 Mon Sep 17 00:00:00 2001 From: Guillaume Buisson <> Date: Wed, 6 Mar 2024 11:29:07 +0100 Subject: [PATCH] [osc] crashfix when receiving an OSC message during the generic_device creation --- src/ossia/network/osc/osc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ossia/network/osc/osc.cpp b/src/ossia/network/osc/osc.cpp index 52a4de8e7c3..089ec1e7c53 100644 --- a/src/ossia/network/osc/osc.cpp +++ b/src/ossia/network/osc/osc.cpp @@ -254,6 +254,11 @@ bool osc_protocol::echo_incoming_message( void osc_protocol::on_received_message( const oscpack::ReceivedMessage& m, const oscpack::IpEndpointName& ip) { + [[unlikely]] if(!m_device) + { + return; + } + [[unlikely]] if(m_learning) { auto already_learned = ossia::net::osc_learn(&m_device->get_root_node(), m);