mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-29 01:42:08 +00:00
fix(entity-registry): fix plugin load error (#10476)
This commit is contained in:
parent
384c917b63
commit
fe33ce7ce6
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user