Skip to content

Commit a49f309

Browse files
philwebbwilkinsona
authored andcommitted
Call afterProperties set in LogFileMvcEndpoint
Call afterPropertiesSet on the delegate `ResourceHttpRequestHandler` to prevent an NPE. This change is required for compatibility with Spring Framework 4.3 following SPR-13834. Closes gh-6592
1 parent cec6015 commit a49f309

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ private static class Handler extends ResourceHttpRequestHandler {
147147

148148
Handler(Resource resource) {
149149
this.resource = resource;
150+
try {
151+
afterPropertiesSet();
152+
}
153+
catch (Exception ex) {
154+
throw new IllegalStateException(ex);
155+
}
150156
}
151157

152158
@Override

0 commit comments

Comments
 (0)