Skip to content

Commit 0557be4

Browse files
maecvalgaryrussell
andauthored
Issue 1450: avoid NullPointerException which occurs during shutdown o… (#1451)
* Issue 1450: avoid NullPointerException which occurs during shutdown of the SpringBoot app * Update spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java Co-authored-by: Gary Russell <[email protected]> Co-authored-by: Gary Russell <[email protected]>
1 parent 07a21d9 commit 0557be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ protected ApplicationEventPublisher getApplicationEventPublisher() {
212212

213213
@Override
214214
public void onApplicationEvent(ContextClosedEvent event) {
215-
if (getApplicationContext().equals(event.getApplicationContext())) {
215+
if (event.getApplicationContext().equals(getApplicationContext())) {
216216
this.contextStopped = true;
217217
}
218218
if (this.publisherConnectionFactory != null) {

0 commit comments

Comments
 (0)