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

Add check for empty item to getItemId #243

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Add check for empty item to getItemId #243

merged 1 commit into from
Sep 18, 2023

Conversation

masaball
Copy link
Contributor

The behavior encountered by Avalon with Ramp components not loading was because of top level ranges having an empty item section: item: [ ]. The parser would attempt to grab the item's ID and the parsing would fail, causing all of the components to stop processing.

This PR adds a condition to check the length of the item array before grabbing the ID value.

Copy link
Collaborator

@Dananji Dananji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

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