Skip to content

Improve exception reporting for null values on optional field values #205

@aj-stein-gsa

Description

@aj-stein-gsa

User Story

As a developer using this library and related tooling, when encountering an optional field value, I would like a more precise error message and controlled error behavior when such a null value is visited. I do not want a null pointer exception.

NOTE: This is a fix in the core library that is the root cause of the bug reported in https://github.com/GSA/fedramp-automation/issues/787.

Goals

  • Improve error handling for users of metaschema-java based tools related to null field values
  • Gracefully fail in the occurrence of null values for a field value

Dependencies

N/A

Acceptance Criteria

  • All website and readme documentation affected by the changes in this issue have been updated.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

Revisions

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestjavaPull requests that update Java code

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions