-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve exception reporting for null values on optional field values #205
Comments
@david-waltermire do we need to wrap this into the upcoming release? I do not know if we are planning that for the next day or two or we have some wiggle room. Let me know, thanks. |
I can include this in the There are two ways to handle this.
I am leaning towards option 1, but would like to consider other thoughts. |
I guess it depends on what is more accessible to developers or engineers extending tools on top of it. I guess it depends on what you want to present to the user with either option 1. Can it give relevant information to the developer/engineer sufficient context to know where in the document the issue occurs without more work and surfacing it specifically as a Metapath processing error? Can such context be given without Metapath processing and presumably Metapath location? Generally, I am fine with Option 1, but wanted to understand a little more detail on that. |
I created a feature branch with a test for this. |
#227 summarizes why this is not possible to completely fix right now. Adding to backlog. |
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 GSA/fedramp-automation#787.
Goals
Dependencies
N/A
Acceptance Criteria
ObjectUtils.requireNonNull()
check onmetaschema-java/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/IBoundDefinitionModelFieldComplex.java
Line 77 in ebdf350
Revisions
No response
The text was updated successfully, but these errors were encountered: