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

Fixed NullReferenceException when enumerating bundled/contained resources #2858

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

Kasdejong
Copy link
Member

Description

ScopedNode.ContainedResources() and ScopedNode.BundledResources() should no longer throw an exception when fullUrl or id respectively are not set.

When an entry or contained resource is encountered without these fields set, they are now caught in an overflow list containing all resources which cannot be referenced. These can never be resolved on, so this does not need to be in a dict.

Related issues

FS had issues building with SDK 5.10

Testing

Added new test in ScopedNodeTests so that we do not break this at some point

@Kasdejong Kasdejong self-assigned this Sep 11, 2024
@Kasdejong Kasdejong requested a review from mmsmits September 11, 2024 12:13
@mmsmits mmsmits merged commit dea1ba0 into develop Sep 11, 2024
16 checks passed
@mmsmits mmsmits deleted the bundled-resource-cache-hotfix branch September 11, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants