Skip to content

Commit

Permalink
[Darwin] The data value comparison function in MTRDevice incorrectly …
Browse files Browse the repository at this point in the history
…complains about nil comparison (project-chip#32863)
  • Loading branch information
jtung-apple authored Apr 5, 2024
1 parent 9b9ed65 commit 11da2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ - (BOOL)_attributeDataValue:(NSDictionary *)one isEqualToDataValue:(NSDictionary
return YES;
}
if (!one || !theOther) {
MTR_LOG_ERROR("%@ attribute data-value comparison does not expect a dictionary to be nil: %@ %@", self, one, theOther);
// Comparing against nil is expected, and should return NO quietly
return NO;
}

Expand Down

0 comments on commit 11da2b1

Please sign in to comment.