From a49f309ec19f9cbc986680cd3ee5e2684304b624 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 23 Mar 2016 21:49:56 -0700 Subject: [PATCH] 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 --- .../boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java index 59780dfe7da..532896dd2de 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java @@ -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