From a282793a64c304419f46783d7cff252d64d93873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gallou?= Date: Mon, 16 Sep 2024 19:50:31 +0200 Subject: [PATCH] Fix LametricTime crash when reinit configuration for manually pairing --- sources/plugins/LametricTime/LametricTime.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/plugins/LametricTime/LametricTime.cpp b/sources/plugins/LametricTime/LametricTime.cpp index 1b14483a7c..53cccd3371 100644 --- a/sources/plugins/LametricTime/LametricTime.cpp +++ b/sources/plugins/LametricTime/LametricTime.cpp @@ -191,6 +191,9 @@ void CLametricTime::declareKeyword() const void CLametricTime::fillDeviceInformationManually() const { + if (!m_deviceInformation) + m_deviceInformation = boost::make_shared(); + m_deviceInformation->m_deviceName = DeviceName; m_deviceInformation->m_deviceModel = m_deviceManager->getDeviceInformations()->get("model"); m_deviceInformation->m_deviceType = m_deviceManager->getDeviceInformations()->get("name");