mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-10 03:07:32 +08:00
修复有些BeanDefinition定义中并没有root class,导致了NPE的问题
This commit is contained in:
@@ -30,7 +30,11 @@ public class DeclBeanDefinition implements BeanDefinitionRegistryPostProcessor {
|
||||
|
||||
beanDefinitionHolderMap.entrySet().stream().filter(entry -> {
|
||||
Class<?> rawClass = entry.getValue().getResolvableType().getRawClass();
|
||||
return Arrays.stream(rawClass.getMethods()).anyMatch(method -> AnnotationUtil.getAnnotation(method, LiteflowMethod.class) != null);
|
||||
if (rawClass == null){
|
||||
return false;
|
||||
}else{
|
||||
return Arrays.stream(rawClass.getMethods()).anyMatch(method -> AnnotationUtil.getAnnotation(method, LiteflowMethod.class) != null);
|
||||
}
|
||||
}).forEach(entry -> {
|
||||
Class<?> rawClass = entry.getValue().getResolvableType().getRawClass();
|
||||
List<DeclWarpBean> declWarpBeanList = DeclComponentParserHolder.loadDeclComponentParser().parseDeclBean(rawClass);
|
||||
|
||||
Reference in New Issue
Block a user