iliax 1 年間 前
コミット
0730bab773

+ 1 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/KafkaClusterFactory.java

@@ -194,7 +194,7 @@ public class KafkaClusterFactory {
   private boolean prometheusStorageConfigured(ClustersProperties.Cluster cluster) {
   private boolean prometheusStorageConfigured(ClustersProperties.Cluster cluster) {
     return Optional.ofNullable(cluster.getMetrics())
     return Optional.ofNullable(cluster.getMetrics())
         .flatMap(m -> Optional.ofNullable(m.getStore()))
         .flatMap(m -> Optional.ofNullable(m.getStore()))
-        .flatMap(s -> Optional.of(s.getPrometheus()))
+        .flatMap(s -> Optional.ofNullable(s.getPrometheus()))
         .map(p -> StringUtils.hasText(p.getUrl()))
         .map(p -> StringUtils.hasText(p.getUrl()))
         .orElse(false);
         .orElse(false);
   }
   }