From a638a7d85280b153a0e9125f1ef94005c8886ada Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 6 Aug 2025 15:36:18 +0200 Subject: [PATCH] fix crash --- Linphone/core/participant/ParticipantDeviceCore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linphone/core/participant/ParticipantDeviceCore.cpp b/Linphone/core/participant/ParticipantDeviceCore.cpp index 81c802bc..4bbf9098 100644 --- a/Linphone/core/participant/ParticipantDeviceCore.cpp +++ b/Linphone/core/participant/ParticipantDeviceCore.cpp @@ -49,7 +49,8 @@ ParticipantDeviceCore::ParticipantDeviceCore(const std::shared_ptrasStringUriOnly()); // the display name of the device himself may be the uncleaned sip uri // Use the participant name instead - mDisplayName = Utils::coreStringToAppString(device->getParticipant()->getAddress()->getDisplayName()); + auto participant = device->getParticipant(); + mDisplayName = Utils::coreStringToAppString(participant ? participant->getAddress()->getDisplayName() : ""); if (mDisplayName.isEmpty()) { mDisplayName = ToolModel::getDisplayName(deviceAddress); }