Skip to content

Commit

Permalink
Try indexed names on injection when non indexed value is null (#1315)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2bff603)
  • Loading branch information
radcortez committed Feb 19, 2025
1 parent e614d1f commit 231b5e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static <T> T convertValues(ConfigValue configValue, Type type, SmallRyeC
};

// Use indexed if comma separated empty or higher in ordinality
if (indexedOrdinality >= configValue.getConfigSourceOrdinal()) {
if (configValue.getValue() == null || indexedOrdinality >= configValue.getConfigSourceOrdinal()) {
return resolveConverterForIndexed(type, config, indexedConverter).convert(" ");
} else {
return config.convertValue(configValue, resolveConverter(type, config));
Expand Down

0 comments on commit 231b5e0

Please # to comment.