Skip to content

Commit

Permalink
fix possible string out of bounds exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 29, 2015
1 parent e4633f9 commit 4e29c25
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -673,7 +673,8 @@ protected String buildColumnNameString(String tableAlias, boolean quote, Trigger
}
columnsText.append(",");
}
return columnsText.substring(0, columnsText.length() - 1);

return columnsText.length() > 0 ? columnsText.substring(0, columnsText.length() - 1) : columnsText.toString();
}

protected ColumnString buildColumnsString(String origTableAlias, String tableAlias,
Expand Down

0 comments on commit 4e29c25

Please sign in to comment.