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

Fixing an NPE when the component is missing its parent #69

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

Craigacp
Copy link
Member

@Craigacp Craigacp commented Oct 5, 2023

@JackSullivan found an issue where OLCUT throws an NPE in xml, json and pb when a component is inheriting its properties, but the component it inherits from isn't present in the file. Config files which exhibit this issue are invalid, but the NPE doesn't tell you what happened. This patch changes it so it throws ConfigLoaderException with a useful error message.

@Craigacp Craigacp added the oracle employee PR is from an Oracle employee label Oct 5, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 5, 2023
@Craigacp Craigacp changed the title Fixing an NPE when the component is missing it's parent Fixing an NPE when the component is missing its parent Oct 5, 2023
Copy link
Member

@JackSullivan JackSullivan 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 to me

@Craigacp Craigacp merged commit dcde0af into main Oct 5, 2023
8 checks passed
@Craigacp Craigacp deleted the overriding-patch branch October 5, 2023 15:46
Craigacp added a commit that referenced this pull request Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement. oracle employee PR is from an Oracle employee
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants