From 4352707eb36114391458d30c78b9cfc9fefe8d6b 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 following SPR-13834. --- .../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 59780dfe7d..532896dd2d 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