From 7e4e1c52c830a6e92277474d864e4f614701ad12 Mon Sep 17 00:00:00 2001 From: Reza Jahanbakhshi Date: Wed, 3 Aug 2022 12:24:55 +0200 Subject: [PATCH] group pointer shouldn't be null to be dereferenced --- cpp/src/command_classes/AssociationCommandConfiguration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/src/command_classes/AssociationCommandConfiguration.cpp b/cpp/src/command_classes/AssociationCommandConfiguration.cpp index 576441250b..63ff69f0a7 100644 --- a/cpp/src/command_classes/AssociationCommandConfiguration.cpp +++ b/cpp/src/command_classes/AssociationCommandConfiguration.cpp @@ -182,8 +182,7 @@ namespace OpenZWave if (Node* node = GetNodeUnsafe()) { - Group* group = node->GetGroup(groupIdx); - if ( NULL == group) + if (Group* group = node->GetGroup(groupIdx)) { if (firstReports) {