Fix NPE
This commit is contained in:
committed by
Taylor Wicksell
parent
368ebc4d36
commit
d62d78e500
@@ -146,6 +146,9 @@ public class SpringModule extends AbstractModule {
|
||||
beanName, type, bindingAnnotation);
|
||||
|
||||
Class clazz = (type instanceof Class) ? (Class) type : beanFactory.getType(beanName);
|
||||
if (clazz == null) {
|
||||
continue;
|
||||
}
|
||||
if (!clazz.isInterface() && !ClassUtils.isCglibProxyClass(clazz)) {
|
||||
bindConditionally(binder(), name, clazz, typeProvider, namedProvider, bindingAnnotation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user