From d5f0c19d267311d336686f9091383510554d0806 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Tue, 27 Oct 2026 23:38:07 -0400 Subject: [PATCH] plugins/feature/sid: Guard against null channel in getChannels() Fix Coverity CID 652299 by checking the result of mainCore->getChannel() before passing it to getChannelId(). Skip the channel if the lookup returns nullptr. Signed-off-by: Robin Getz --- plugins/feature/sid/sidsettings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/feature/sid/sidsettings.cpp b/plugins/feature/sid/sidsettings.cpp index a3e051f84..9dfc44df0 100644 --- a/plugins/feature/sid/sidsettings.cpp +++ b/plugins/feature/sid/sidsettings.cpp @@ -645,6 +645,9 @@ void SIDSettings::getChannels(QStringList& ids, QStringList& titles) if (ChannelWebAPIUtils::getChannelReportValue(deviceSetIndex, channelIndex, "channelPowerDB", power)) { ChannelAPI *channel = mainCore->getChannel(deviceSetIndex, channelIndex); + if (!channel) { + continue; + } QString id = mainCore->getChannelId(channel);