Repository: quarkusio/quarkus
Issue: NPE in SmallRyeGraphQLProcessor#buildExecutionService when using quarkus-smallrye-graphql and quarkus-jdbc-oracle

### Describe the bug

NPE in SmallRyeGraphQLProcessor#buildExecutionService when using `quarkus-smallrye-graphql` and `quarkus-jdbc-oracle`

Regression in Quarkus 2.5.2.Final.

```
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.smallrye.graphql.deployment.SmallRyeGraphQLProcessor#buildExecutionService threw an exception: java.lang.NullPointerException: Cannot read the array length because "buf" is null
	at java.base/java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:108)
	at io.quarkus.smallrye.graphql.deployment.SmallRyeGraphQLProcessor.buildExecutionService(SmallRyeGraphQLProcessor.java:200)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:887)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
	at java.base/java.lang.Thread.run(Thread.java:833)
	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
```

### Expected behavior

Application compiles

### Actual behavior

Build fails

### How to Reproduce?

Create application with quarkus-smallrye-graphql and quarkus-jdbc-oracle
e.g. https://code.quarkus.io/api/download?s=jjB.H95
or have this defined in your project:
```xml
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-smallrye-graphql</artifactId>
    </dependency>
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-jdbc-oracle</artifactId>
    </dependency>
```

Run `mvn quarkus:dev` or `mvn clean verify` to see the error

Running `mvn clean verify -Dquarkus.platform.version=2.5.1.Final` works fine

### Output of `uname -a` or `ver`

macOS Monterey

### Output of `java -version`

Java 17

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

2.5.2.Final

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

Apache Maven 3.8.1

### Additional information

_No response_

Changed files:
extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java

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 ffe95cb2673..84058828434 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<String, byte[]> modifiedClases = graphQLIndexBuildItem.getModifiedClases();
 
         for (Map.Entry<String, byte[]> 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());
+                }
             }
         }