提交 b060f188 编写于 作者: S Serge Rider

NPE fix

上级 9b9764d3
......@@ -85,10 +85,12 @@ public class MySQLCreateDatabaseDialog extends BaseDialog
assert charset != null;
collationCombo.removeAll();
for (MySQLCollation col : charset.getCollations()) {
collationCombo.add(col.getName());
if (charset != null) {
for (MySQLCollation col : charset.getCollations()) {
collationCombo.add(col.getName());
}
collation = charset.getDefaultCollation();
}
collation = charset.getDefaultCollation();
if (collation != null) {
UIUtils.setComboSelection(collationCombo, collation.getName());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册