IndexOutOfBoundsException in PathImpl

Description

I'm usign Hibernate validator 6.0.14. I'm getting a IndexOutOfBoundsException in my application using Spring Boot 2, Spring Data REST.
Probably the bug comes from Spring but, PathImpl method

raises a IndexOutOfBoundsException.

Debugging I see the nodeList is empty and of course when you do

the exception is raised.

This is your source code just to point out better where the problem is (line 373 in HV 6.0.14):

This is the stack trace of the exception:

I opened a bug in Spring Data REST (https://jira.spring.io/projects/DATAREST/issues/DATAREST-1342) as well.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Daniele Renda

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure