fix(entity-registry): fix plugin load error (#10476)

This commit is contained in:
david-leifker 2024-05-09 16:22:28 -05:00 committed by GitHub
parent 384c917b63
commit fe33ce7ce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,10 +157,10 @@ public class PluginFactory {
"Error constructing entity registry plugin class: {}",
config.getClassName(),
e);
return Stream.<T>empty();
return (T) null;
}
})
.map(plugin -> (T) plugin)
.filter(Objects::nonNull)
.filter(PluginSpec::enabled)
.collect(Collectors.toList());
}