Commit 8191eb5c authored by Quxl's avatar Quxl

x

parent 4fcf6bbf
......@@ -80,7 +80,8 @@ public class ExportServiceImpl implements ExportService {
String columnDefinition = column.columnDefinition();
if(StringUtil.isNotBlank(columnDefinition)) {
String regex = "COMMENT '(.+)'";
String comment = StringUtil.search(columnDefinition, regex, 1)[0];
String[] strs = StringUtil.search(columnDefinition, regex, 1);
String comment = (strs == null || strs.length == 0 ? null : strs[0]);
if(StringUtil.isNotBlank(comment)) {
columnComment = comment;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment