Commit 54b06131 authored by Andy Wilkinson's avatar Andy Wilkinson

Gracefully handle null readers in MetricExportAutoConfiguration

parent d8af7980
......@@ -69,8 +69,8 @@ public class MetricExportAutoConfiguration {
Map<String, MetricWriter> writers = new HashMap<String, MetricWriter>();
MetricReader reader = endpointReader;
if (reader == null && !this.readers.isEmpty()) {
MetricReader reader = this.endpointReader;
if (reader == null && this.readers != null && !this.readers.isEmpty()) {
reader = new CompositeMetricReader(this.readers.toArray(new MetricReader[0]));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment