RWS / dxa-web-application-java

SDL Digital Experience Accelerator Java Spring MVC web application
25 stars 37 forks source link

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on GraphQlConditionService getMetadata method #126

Closed neeteshnarvaria closed 3 years ago

neeteshnarvaria commented 4 years ago

hi there is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 if edges is empty on GraphQLConditionService.java getmetadata method line no. 74

if (edges.isEmpty()) {
                result.add("{}");
            }
            **Object metadata = edges.get(0).getNode().getValue();**
NIkonDSL commented 3 years ago

CRQ-22567 fixed in 2.2.11