Skip to content

Commit

Permalink
Fix crash when try to read UniqueId from a legacy device (#35268)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Sep 20, 2024
1 parent 6a2e452 commit e136df0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ void DeviceSynchronizer::OnAttributeData(const ConcreteDataAttributePath & path,
VerifyOrDie(path.mEndpointId == kRootEndpointId);
VerifyOrDie(path.mClusterId == Clusters::BasicInformation::Id);

CHIP_ERROR error = status.ToChipError();
if (CHIP_NO_ERROR != error)
{
ChipLogError(NotSpecified, "Response Failure: %" CHIP_ERROR_FORMAT, error.Format());
return;
}

switch (path.mAttributeId)
{
case Clusters::BasicInformation::Attributes::UniqueID::Id:
Expand Down

0 comments on commit e136df0

Please sign in to comment.