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

Fix issue causing null pointer exception when required field missing from requestBody #48

Closed
whoamnick opened this issue Aug 13, 2018 · 0 comments
Assignees

Comments

@whoamnick
Copy link
Member

When a request is sent to an endpoint where the requestBody is defined without a required field, the following exception is thrown:

17:54:59.003 [XNIO-1 task-3]    ERROR c.n.exception.ExceptionHandler handleRequest - Exception:
java.lang.NullPointerException: null
	at com.networknt.openapi.RequestValidator.validateRequestBody(RequestValidator.java:96)
	at com.networknt.openapi.RequestValidator.validateRequest(RequestValidator.java:79)
	at com.networknt.openapi.ValidatorHandler.handleRequest(ValidatorHandler.java:73)
@whoamnick whoamnick self-assigned this Aug 13, 2018
@stevehu stevehu changed the title Fix issue causing null pointer exception when required field missing from requestBody Fix issue causing null pointer exception when required field missing from requestBody Sep 22, 2018
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

No branches or pull requests

1 participant