Skip to content

Commit

Permalink
[INLONG-9995][Manager] Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 committed Apr 17, 2024
1 parent 90b5d0a commit 9943313
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ public List<FieldInfo> parseFields(String str, InlongStreamInfo streamInfo) thro
separator = (char) Integer.parseInt(streamInfo.getDataSeparator());
}
String[] bodys = StringUtils.split(str, separator);
if (bodys.length != fields.size()) {
return fields;
}
for (int i = 0; i < bodys.length; i++) {
fields.get(i).setFieldValue(bodys[i]);
if (i < fields.size()) {
fields.get(i).setFieldValue(bodys[i]);
}
}
} catch (Exception e) {
log.warn("parse fields failed for groupId = {}, streamId = {}", streamInfo.getInlongGroupId(),
Expand Down

0 comments on commit 9943313

Please sign in to comment.