Skip to content

ConnectionFieldTypeVisitor.ConnectionDataFetcher.adapt throws IndexOutOfBoundsException when container is empty #775

Closed
@jimador

Description

@jimador

The ConnectionFieldTypeVisitor.ConnectionDataFetcher.adapt method throws an IndexOutOfBoundsException when the container parameter is empty (e.g. an empty Spring Data Window). adapter.getContent(emptyWindowObject) will return an empty collection which makes nodes and edges empty lists. When edges.get(0) is called, we get an exception thrown - IndexOutOfBoundsException: Index 0 out of bounds for length 0.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions