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); }