Skip to content

Commit

Permalink
0005237: SQL Explorer queries on SQLite get IllegalStateException
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 7, 2022
1 parent e428a32 commit d79bc3f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -157,8 +157,6 @@ protected void createTabularResultLayout() {
getStyle().set("padding-bottom", "0");
createMenuBar();
try {
grid = putResultsInGrid(settings.getProperties().getInt(SQL_EXPLORER_MAX_RESULTS));
grid.setSizeFull();
columnNameMap = new HashMap<Integer, String>();
for (int i = 0; i < meta.getColumnCount(); i++) {
String realColumnName = meta.getColumnName(i + 1);
Expand All @@ -169,6 +167,8 @@ protected void createTabularResultLayout() {
}
columnNameMap.put(i, columnName);
}
grid = putResultsInGrid(settings.getProperties().getInt(SQL_EXPLORER_MAX_RESULTS));
grid.setSizeFull();
ContextMenu menu = new ContextMenu(grid);
menu.addItem(ACTION_SELECT, event -> handleAction(ACTION_SELECT));
menu.addItem(ACTION_INSERT, event -> handleAction(ACTION_INSERT));
Expand Down

0 comments on commit d79bc3f

Please sign in to comment.