Skip to content

Unhelpful IndexOutOfBoundException when an empty array subsection is extracted #732

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

Closed
wants to merge 1 commit into from

Conversation

ddaaac
Copy link
Contributor

@ddaaac ddaaac commented Jun 7, 2021

When I try to extract subsection a from payload with {"a" : []}, IndexOutOfBoundsException occurs . User-friendly messages are required.

@wilkinsona wilkinsona changed the title Improve exception message when subsection is empty string Unhelpful IndexOutOfBoundException when an empty array subsection is extracted Jun 14, 2021
@wilkinsona wilkinsona added type: bug A bug and removed status: waiting-for-triage Untriaged issue labels Jun 14, 2021
@wilkinsona wilkinsona added this to the 2.0.6.RELEASE milestone Jun 14, 2021
@wilkinsona
Copy link
Member

@ddaaac Great stuff. Thank you very much for making your first contribution to Spring REST Docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants