File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-context/src/main/java/org/springframework/context/support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
79
79
import org .springframework .core .io .support .ResourcePatternResolver ;
80
80
import org .springframework .lang .Nullable ;
81
81
import org .springframework .util .Assert ;
82
+ import org .springframework .util .CollectionUtils ;
82
83
import org .springframework .util .ObjectUtils ;
83
84
import org .springframework .util .ReflectionUtils ;
84
85
@@ -836,7 +837,7 @@ protected void registerListeners() {
836
837
// Publish early application events now that we finally have a multicaster...
837
838
Set <ApplicationEvent > earlyEventsToProcess = this .earlyApplicationEvents ;
838
839
this .earlyApplicationEvents = null ;
839
- if (earlyEventsToProcess != null ) {
840
+ if (! CollectionUtils . isEmpty ( earlyEventsToProcess ) ) {
840
841
for (ApplicationEvent earlyEvent : earlyEventsToProcess ) {
841
842
getApplicationEventMulticaster ().multicastEvent (earlyEvent );
842
843
}
You can’t perform that action at this time.
0 commit comments