json_schema
json_schema copied to clipboard
Avoid unnecessary null pointer exception if reference schema is given
Ultimate problem:
When running an application using json_schema with debugger, I tend to break on every exception. The json_schema initialization unnecessarily tried to parse the contents of _fetchedFromUri
, which throws when this value is null.
How it was fixed:
I added an extra null check to avoid JsonSchemaUtils.getBaseFromFullUri
call when the parameter is not given.
Testing suggestions:
Potential areas of regression:
None identified.
Security Insights
No security relevant content was detected by automated scans.
Action Items
- Review PR for security impact; comment "security review required" if needed or unsure
- Verify
aviary.yaml
coverage of security relevant code
Questions or Comments? Reach out on Slack: #support-infosec.
@Workiva/release-management-p