| 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
private PathImpl(List<Node> nodeList)()
raises a IndexOutOfBoundsException. Debugging I see the nodeList is empty and of course when you do
(NodeImpl) nodeList.get( nodeList.size() - 1 );
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):
private PathImpl(List<Node> nodeList) {
this.nodeList = nodeList;
currentLeafNode = (NodeImpl) nodeList.get( nodeList.size() - 1 );
hashCode = -1;
nodeListRequiresCopy = true;
}
I opened a bug in Spring Data REST (https://jira.spring.io/projects/DATAREST/issues/DATAREST-1342) as well. |