From a4b7766947f3432c60230a190005a6bc73eadd22 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 11 Jan 2024 17:03:00 +0100 Subject: [PATCH] DeviceManager: Add nullptr check for connected device Possible fix for #1313 --- src/device/devicemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/devicemanager.cpp b/src/device/devicemanager.cpp index 592c520e..1269f646 100644 --- a/src/device/devicemanager.cpp +++ b/src/device/devicemanager.cpp @@ -830,7 +830,7 @@ void DeviceManager::DeviceTaskStarted(const int id) { for (int i = 0; i < devices_.count(); ++i) { DeviceInfo *info = devices_[i]; - if (&*info->device_ == device) { + if (info->device_ && &*info->device_ == device) { QModelIndex index = ItemToIndex(info); if (!index.isValid()) continue; active_tasks_[id] = index;