소스 검색

Fixed empty protobuf file

German Osin 4 년 전
부모
커밋
d593e6f70e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      kafka-ui-api/src/main/java/com/provectus/kafka/ui/cluster/mapper/ClusterMapper.java

+ 5 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/cluster/mapper/ClusterMapper.java

@@ -66,7 +66,11 @@ public interface ClusterMapper {
      }
 
      default Path resolvePath(String path) {
-        return Path.of(path);
+        if (path != null) {
+            return Path.of(path);
+        } else {
+            return null;
+        }
      }
 
 }