summarylogtreecommitdiffstats
path: root/null-check.patch
blob: 4e64770d3fec292359dfb4364ae4b45b43ce1449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cpp/src/command_classes/AssociationCommandConfiguration.cpp b/cpp/src/command_classes/AssociationCommandConfiguration.cpp
index 57644125..744757da 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)
 							{