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