Skip to content

Commit e56c11c

Browse files
committed
AbstractApplicationContext.isRunning() avoids IllegalStateException
Issue: SPR-13667
1 parent 71a7b5d commit e56c11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ public void stop() {
12851285

12861286
@Override
12871287
public boolean isRunning() {
1288-
return getLifecycleProcessor().isRunning();
1288+
return (this.lifecycleProcessor != null && this.lifecycleProcessor.isRunning());
12891289
}
12901290

12911291

0 commit comments

Comments
 (0)