Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ public StreamSource get(Integer id) {
throw new BusinessException(ErrorCodeEnum.SOURCE_INFO_NOT_FOUND,
String.format("source not found by id=%s", id));
}
InlongGroupEntity groupEntity =
groupMapper.selectByGroupId(entity.getInlongGroupId());
if (groupEntity == null) {
throw new BusinessException(ErrorCodeEnum.GROUP_NOT_FOUND);
}
StreamSourceOperator sourceOperator = operatorFactory.getInstance(entity.getSourceType());
StreamSource streamSource = sourceOperator.getFromEntity(entity);
LOGGER.debug("success to get source by id={}", id);
Expand Down
Loading