diff --git a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java index ffe95cb267369..840588284349c 100644 --- a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java +++ b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java @@ -199,10 +199,12 @@ void buildExecutionService( Map modifiedClases = graphQLIndexBuildItem.getModifiedClases(); for (Map.Entry kv : modifiedClases.entrySet()) { - try (ByteArrayInputStream bais = new ByteArrayInputStream(kv.getValue())) { - indexer.index(bais); - } catch (IOException ex) { - LOG.warn("Could not index [" + kv.getKey() + "] - " + ex.getMessage()); + if (kv.getKey() != null && kv.getValue() != null) { + try (ByteArrayInputStream bais = new ByteArrayInputStream(kv.getValue())) { + indexer.index(bais); + } catch (IOException ex) { + LOG.warn("Could not index [" + kv.getKey() + "] - " + ex.getMessage()); + } } }