Browse Source

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
pull/6643/merge
Phillip Webb 10 years ago committed by Andy Wilkinson
parent
commit
a49f309ec1
  1. 6
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java

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

@ -147,6 +147,12 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware { @@ -147,6 +147,12 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware {
Handler(Resource resource) {
this.resource = resource;
try {
afterPropertiesSet();
}
catch (Exception ex) {
throw new IllegalStateException(ex);
}
}
@Override

Loading…
Cancel
Save