+ fixed NPE when closing up non-initialized contexts
This commit is contained in:
parent
773bdcded5
commit
ae8c053568
|
|
@ -137,7 +137,8 @@ public abstract class AbstractRefreshableApplicationContext extends AbstractAppl
|
|||
@Override
|
||||
protected void cancelRefresh(BeansException ex) {
|
||||
synchronized (this.beanFactoryMonitor) {
|
||||
this.beanFactory.setSerializationId(null);
|
||||
if (this.beanFactory != null)
|
||||
this.beanFactory.setSerializationId(null);
|
||||
}
|
||||
super.cancelRefresh(ex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue