forked from External/mage
DeckEditorPanel - Fixed some existing exceptions.
This commit is contained in:
parent
681cb4b66a
commit
189984d3d6
7 changed files with 127 additions and 114 deletions
|
|
@ -33,6 +33,8 @@ public enum ExpansionRepository {
|
|||
|
||||
private Dao<ExpansionInfo, Object> expansionDao;
|
||||
|
||||
public boolean instanceInitialized = false;
|
||||
|
||||
ExpansionRepository() {
|
||||
File file = new File("db");
|
||||
if (!file.exists()) {
|
||||
|
|
@ -48,9 +50,11 @@ public enum ExpansionRepository {
|
|||
|
||||
TableUtils.createTableIfNotExists(connectionSource, ExpansionInfo.class);
|
||||
expansionDao = DaoManager.createDao(connectionSource, ExpansionInfo.class);
|
||||
instanceInitialized = true;
|
||||
} catch (SQLException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void add(ExpansionInfo expansion) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue