Skip to content

Commit

Permalink
Fixed loosing alias names (dataManager initialized when createInstanc…
Browse files Browse the repository at this point in the history
…e was called).
  • Loading branch information
alexgobbo committed May 18, 2018
1 parent 2d4f251 commit 11979c4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/java/ch/psi/pshell/core/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,12 @@ public static Context createInstance() {
if (instance == null) {
instance = new Context();
instance.pluginManager.loadExtensionsFolder();
}

//To provide services even if context does not initialize all right (and in disabled mode).
try {
instance.dataManager.initialize();
} catch (Throwable ex) {
logger.log(Level.SEVERE, null, ex);
//To provide services even if context does not initialize all right (and in disabled mode).
try {
instance.dataManager.initialize();
} catch (Throwable ex) {
logger.log(Level.SEVERE, null, ex);
}
}

return instance;
Expand Down

0 comments on commit 11979c4

Please sign in to comment.