GH-1327 Fixed NPE due to change to Duration

Resolves #1327
This commit is contained in:
Oleg Zhurakousky
2018-03-26 07:58:24 -04:00
parent 7d5f7f9e8a
commit 0656c23f1e

View File

@@ -73,9 +73,9 @@ public class ApplicationMetricsProperties implements EnvironmentAware, Applicati
/**
* Interval expressed as Duration for scheduling metrics snapshots publishing.
* Defaults to PT60S (60 sec)
* Defaults to 60 seconds
*/
private Duration scheduleInterval;
private Duration scheduleInterval = Duration.ofSeconds(60);
/**
* List of properties that are going to be appended to each message. This gets