Skip to content

Commit

Permalink
Darwin: return nil on error in MTRSetupPayload getAllOptionalVendorData
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Apr 29, 2024
1 parent 0c6aa2f commit 42d8bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRSetupPayload.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ - (void)getSerialNumber:(chip::SetupPayload)setupPayload
if (error) {
*error = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeInvalidArgument userInfo:nil];
}
return @[];
return nil;
}
[allOptionalData addObject:info];
}
Expand Down

0 comments on commit 42d8bf1

Please sign in to comment.