Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Network] Fix HopLink format error issue when resourceId return "" #38876

Merged
merged 21 commits into from
Sep 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update HopLink.cs
  • Loading branch information
dvbb committed Sep 26, 2023
commit ea88818b792098894b5c71fda5f61abbf87a106f
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@ public partial class HopLink
[Obsolete("This property has been replaced by ResourceIdString", false)]
public ResourceIdentifier ResourceId
{
get => ResourceIdString is null ? null : new ResourceIdentifier(ResourceIdString);
get => string.IsNullOrEmpty(ResourceIdString) ? null : new ResourceIdentifier(ResourceIdString);
set
{
ResourceId = ResourceIdString is null ? null : new ResourceIdentifier(ResourceIdString);
ResourceId = string.IsNullOrEmpty(ResourceIdString) ? null : new ResourceIdentifier(ResourceIdString);
}
}
}