Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
aiceflower authored and casionone committed Jul 26, 2023
1 parent 903996a commit 049038a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ private String compact(String[] row) {
rowBuilder.append(decoratedValue).append(delimiter);
}
if (rowBuilder.length() > 0 && rowBuilder.toString().endsWith(delimiter)) {
int index = rowBuilder.lastIndexOf(separator);
rowBuilder.delete(index, index + separator.length());
int index = rowBuilder.lastIndexOf(delimiter);
rowBuilder.delete(index, index + delimiter.length());
}
rowBuilder.append("\n");
if (logger.isDebugEnabled()) {
Expand Down

0 comments on commit 049038a

Please sign in to comment.