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 authored and michelle-purcell committed Aug 1, 2023
1 parent a7f631d commit 4da0697
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 4da0697

Please sign in to comment.