diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java index 264350bb54b5c2..7deaf882534f90 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java @@ -50,7 +50,7 @@ public void build(CombinedIndexBuildItem combinedIndexBuildItem, Capabilities ca boolean methods = getBooleanValue(i, "methods"); boolean fields = getBooleanValue(i, "fields"); - boolean ignoreNested = getBooleanValue(i, "ignoreNested"); + boolean ignoreNested = i.value("ignoreNested") != null && i.value("ignoreNested").asBoolean(); boolean serialization = i.value("serialization") != null && i.value("serialization").asBoolean(); boolean unsafeAllocated = i.value("unsafeAllocated") != null && i.value("unsafeAllocated").asBoolean();