+ fixed NPE when closing up non-initialized contexts

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1782 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Costin Leau
2009-08-28 05:43:12 +00:00
parent 2147e66d7c
commit 699ffc5993
@@ -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);
}