Skip to content

Commit

Permalink
解决与quartz集成报错问题 (#2677)
Browse files Browse the repository at this point in the history
quartz初始化的Bean没有beanName,beanName=null,走这段代码的时候报空指针了。
org.springframework.boot.autoconfigure.quartz.AutowireCapableBeanJobFactory类的createJobInstance方法中使用this.beanFactory.initializeBean(jobInstance, null);初始化的Bean,其beanName=null。
  • Loading branch information
liunancun authored and beiwei30 committed Oct 23, 2018
1 parent 5e60bef commit dd950ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public DubboConfigBindingBeanPostProcessor(String prefix, String beanName) {
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {

if (beanName.equals(this.beanName) && bean instanceof AbstractConfig) {
if (beanName != null && beanName.equals(this.beanName) && bean instanceof AbstractConfig) {

AbstractConfig dubboConfig = (AbstractConfig) bean;

Expand Down

0 comments on commit dd950ac

Please sign in to comment.