Skip to content

Commit 8da30ca

Browse files
authored
Fix crash in fabric-admin (#35353)
* Fix crash in fabric-admin * Address nit comment
1 parent d2c356c commit 8da30ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/fabric-admin/device_manager/DeviceSynchronization.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ void DeviceSynchronizer::OnAttributeData(const ConcreteDataAttributePath & path,
7474
VerifyOrDie(path.mEndpointId == kRootEndpointId);
7575
VerifyOrDie(path.mClusterId == Clusters::BasicInformation::Id);
7676

77+
if (!status.IsSuccess())
78+
{
79+
ChipLogError(NotSpecified, "Response Failure: %" CHIP_ERROR_FORMAT, status.ToChipError().Format());
80+
return;
81+
}
82+
7783
switch (path.mAttributeId)
7884
{
7985
case Clusters::BasicInformation::Attributes::UniqueID::Id:

0 commit comments

Comments
 (0)