Skip to content

Commit 3b7b42b

Browse files
authored
[DDING-000] �VodProcessingJob 상태 변경 API entityId null 체킹 누락 수정 (#211)
1 parent efe2c1d commit 3b7b42b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/service/FacadeVodProcessingJobServiceImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ private void checkVodProcessingJobStatus(VodProcessingJob vodProcessingJob) {
5252
}
5353

5454
private void checkExistingFeedAndNotify(VodProcessingJob vodProcessingJob) {
55-
Optional<Feed> optionalFeed = feedService.findById(vodProcessingJob.getFileMetaData().getEntityId());
55+
Long entityId = vodProcessingJob.getFileMetaData().getEntityId();
56+
if(entityId == null) {
57+
return;
58+
}
59+
Optional<Feed> optionalFeed = feedService.findById(entityId);
5660
if (optionalFeed.isPresent()) {
5761
SseEvent<SseVodProcessingNotificationDto> sseEvent = SseEvent.of(
5862
"vod-processing",

0 commit comments

Comments
 (0)