From 2cb9b54724ada8ee66239e0d480fe004798c480e Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 3 Jul 2025 17:33:58 +0200 Subject: [PATCH] Fix a crash when a participant is leaving. --- linphone-app/src/components/conference/ConferenceListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone-app/src/components/conference/ConferenceListener.cpp b/linphone-app/src/components/conference/ConferenceListener.cpp index 0254c02b4..f3d821759 100644 --- a/linphone-app/src/components/conference/ConferenceListener.cpp +++ b/linphone-app/src/components/conference/ConferenceListener.cpp @@ -42,7 +42,7 @@ ConferenceListener::~ConferenceListener(){ // LINPHONE LISTENERS //----------------------------------------------------------------------------------------------------------------------- void ConferenceListener::onActiveSpeakerParticipantDevice(const std::shared_ptr & conference, const std::shared_ptr & participantDevice) { - qDebug() << "onActiveSpeakerParticipantDevice: " << participantDevice->getAddress()->asString().c_str(); + qDebug() << "onActiveSpeakerParticipantDevice: " << (participantDevice ? participantDevice->getAddress()->asString().c_str() : " No active speaker"); emit activeSpeakerParticipantDevice(participantDevice); }