MINOR: Remove spurious warning about plugin.path config provider usage when null (#13783)

Reviewers: Chris Egerton <chrise@aiven.io>
This commit is contained in:
Greg Harris 2023-05-31 09:57:58 -07:00 committed by GitHub
parent 7e9a82c732
commit 6846f51445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ public class WorkerConfig extends AbstractConfig {
String rawPluginPath = rawOriginals.get(PLUGIN_PATH_CONFIG);
// Can't use AbstractConfig::originalsStrings here since some values may be null, which
// causes that method to fail
String transformedPluginPath = Objects.toString(originals().get(PLUGIN_PATH_CONFIG));
String transformedPluginPath = Objects.toString(originals().get(PLUGIN_PATH_CONFIG), null);
if (!Objects.equals(rawPluginPath, transformedPluginPath)) {
log.warn(
"Variables cannot be used in the 'plugin.path' property, since the property is "