Skip to content

Commit

Permalink
Fix configuration access in the reactive messaging dev console widget
Browse files Browse the repository at this point in the history
Fix how is retrieved the configuration (See smallrye/smallrye-reactive-messaging#2235 for details)
  • Loading branch information
cescoffier committed Jul 31, 2023
1 parent 773b8c1 commit 74f159a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ private Map<String, String> getProperties(Config config, String connectorSuffix,
String prefix = connectorPropertyName.substring(0, connectorPropertyName.length() - connectorSuffix.length());
for (String propertyName : config.getPropertyNames()) {
if (propertyName.startsWith(prefix) && !propertyName.equals(connectorPropertyName)) {
properties.put(propertyName.substring(prefix.length() + 1, propertyName.length()),
config.getValue(propertyName, String.class));
properties.put(propertyName.substring(prefix.length() + 1),
config.getOptionalValue(propertyName, String.class).orElse(""));
}
}
return properties;
Expand Down

0 comments on commit 74f159a

Please sign in to comment.