From 1827700f2d3586f53a3a8e9896371f5a9cfc2c99 Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Mon, 2 Sep 2024 11:20:16 -0400 Subject: [PATCH] Fix crash in fabric-admin (#35353) * Fix crash in fabric-admin * Address nit comment --- .../fabric-admin/device_manager/DeviceSynchronization.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/fabric-admin/device_manager/DeviceSynchronization.cpp b/examples/fabric-admin/device_manager/DeviceSynchronization.cpp index adbe0c0213448d..0ca2e270826c9e 100644 --- a/examples/fabric-admin/device_manager/DeviceSynchronization.cpp +++ b/examples/fabric-admin/device_manager/DeviceSynchronization.cpp @@ -74,6 +74,12 @@ void DeviceSynchronizer::OnAttributeData(const ConcreteDataAttributePath & path, VerifyOrDie(path.mEndpointId == kRootEndpointId); VerifyOrDie(path.mClusterId == Clusters::BasicInformation::Id); + if (!status.IsSuccess()) + { + ChipLogError(NotSpecified, "Response Failure: %" CHIP_ERROR_FORMAT, status.ToChipError().Format()); + return; + } + switch (path.mAttributeId) { case Clusters::BasicInformation::Attributes::UniqueID::Id: