OpenZWave / open-zwave

a C++ library to control Z-Wave Networks via a USB Z-Wave Controller.
http://www.openzwave.net/
GNU Lesser General Public License v3.0
1.05k stars 918 forks source link

Fix incorrect null pointer check #2647

Open slowriot opened 1 year ago

slowriot commented 1 year ago

After calling node->GetGroup(), the current version checks if group is null, and if true, proceeds to derefecence the null pointer.

This amends the code to perform as intended, only dereferencing the pointer if group is not null.

slowriot commented 1 year ago

Resolves #2613