GopikaReghunath commented on code in PR #2328:
URL:
https://github.com/apache/incubator-kie-kogito-apps/pull/2328#discussion_r3241247604
##########
data-index/data-index-graphql/src/main/java/org/kie/kogito/index/graphql/query/GraphQLQueryMapper.java:
##########
@@ -82,9 +83,9 @@ public GraphQLQueryParser apply(GraphQLInputObjectType type) {
parser.mapAttribute(field.getName(),
mapEnumArgument(field.getName()));
} else if (isListOfType(field.getType(), type.getName())) {
parser.mapAttribute(field.getName(),
mapRecursiveListArgument(field.getName(), parser));
- } else if (((GraphQLNamedType)
field.getType()).getName().equals(type.getName())) {
+ } else if (field.getType() instanceof GraphQLNamedType &&
((GraphQLNamedType) field.getType()).getName().equals(type.getName())) {
parser.mapAttribute(field.getName(),
mapRecursiveArgument(field.getName(), parser));
- } else {
+ } else if (field.getType() instanceof GraphQLNamedType) {
String name = ((GraphQLNamedType)
field.getType()).getName();
Review Comment:
changes done as per the comment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]