mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
+ fixed NPE when closing up non-initialized contexts
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user