commit | a5ae2adad959861f3e3d15a797b0b9414e69bbb4 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Fri Oct 05 18:16:41 2018 +0900 |
committer | Jian Li <pyguni@gmail.com> | Fri Oct 05 18:16:41 2018 +0900 |
tree | dc7b93af9a02839227fe9f756e538da07f05ee17 | |
parent | 655b9a885fd063ee5aea2a3bbd4c2b62b69943de [diff] |
Fix: resolve NPE with empty configMap setup for openstacktelemetry Change-Id: Ib3f50f34845ddc631a928a037810e1fa688fa669
diff --git a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/config/DefaultPrometheusTelemetryConfig.java b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/config/DefaultPrometheusTelemetryConfig.java index b22f053..33d1d2e 100644 --- a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/config/DefaultPrometheusTelemetryConfig.java +++ b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/config/DefaultPrometheusTelemetryConfig.java
@@ -124,7 +124,6 @@ @Override public PrometheusTelemetryConfig build() { checkNotNull(address, "Prometheus exporter binding address cannot be null"); - checkNotNull(configMap, "Config map cannot be null"); return new DefaultPrometheusTelemetryConfig(address, port, configMap); } }