Call afterProperties set in LogFileMvcEndpoint

Call afterPropertiesSet on the delegate `ResourceHttpRequestHandler`
to prevent an NPE. This change is required following SPR-13834.
This commit is contained in:
Phillip Webb
2016-03-23 21:49:56 -07:00
parent 1b6c2a3e5e
commit 4352707eb3

View File

@@ -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