Skip to content

Commit 2ce974c

Browse files
committed
Add more nullability annotations to module/spring-boot-actuator-autoconfigure
See gh-46587
1 parent 65382a9 commit 2ce974c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementContextFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public ConfigurableApplicationContext createManagementContext(ApplicationContext
6767
}
6868
ConfigurableApplicationContext managementContext = ApplicationContextFactory.DEFAULT
6969
.create(this.webApplicationType);
70+
Assert.state(managementContext != null, "'managementContext' must not be null");
7071
managementContext.setEnvironment(childEnvironment);
7172
managementContext.setParent(parentContext);
7273
return managementContext;

0 commit comments

Comments
 (0)