diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 637e5debffae72..2c67693b30dd4d 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -1983,7 +1983,7 @@ void DeviceCommissioner::ParseCommissioningInfo() // return. auto attributeCache = std::move(mAttributeCache); - if (mPairingDelegate != nullptr) + if (mPairingDelegate != nullptr && err == CHIP_NO_ERROR) { mPairingDelegate->OnReadCommissioningInfo(info); }