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.