[FIX] Null check 추가 및 로그 메시지 수정 to handle empty response properly in KubeflowRunBatch

main
bjkim 1 month ago
parent 0d2751841b
commit 724bc7bfde

@ -100,9 +100,9 @@ public class KubeflowRunBatchConfig {
.bodyToMono(KubeflowRunResponse.class) .bodyToMono(KubeflowRunResponse.class)
.block(); .block();
if (response == null || response.getRuns().isEmpty()) { if (response == null || response.getRuns() == null || response.getRuns().isEmpty()) {
log.info("KubeflowRunBatch: 데이터 없음, 종료"); log.info("KubeflowRunBatch: 조회된 데이터거나 응답이 비어있음");
runs = Collections.emptyList(); runs = Collections.emptyList(); // null 대신 빈 리스트 할당
return null; return null;
} }

Loading…
Cancel
Save