You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi @jimador, we had the same error in our project when returning an empty container. Turns out, in this case, if you return null instead of empty container, the ConnectionFieldTypeVisitor.ConnectionDataFetcher.adapt maps it to an empty connection as seen here
The
ConnectionFieldTypeVisitor.ConnectionDataFetcher.adapt
method throws anIndexOutOfBoundsException
when thecontainer
parameter is empty (e.g. an empty Spring DataWindow
).adapter.getContent(emptyWindowObject)
will return an empty collection which makesnodes
andedges
empty lists. Whenedges.get(0)
is called, we get an exception thrown -IndexOutOfBoundsException: Index 0 out of bounds for length 0
.The text was updated successfully, but these errors were encountered: