forked from Qortal/qortal
Fixed NPE in unit tests. Still need to work out how/when this was introduced.
This commit is contained in:
parent
cf3195cb83
commit
e678ea22e0
@ -120,7 +120,9 @@ public class Common {
|
||||
}
|
||||
|
||||
public static void useSettingsAndDb(String settingsFilename, boolean dbInMemory) throws DataException {
|
||||
closeRepository();
|
||||
if (RepositoryManager.getRepositoryFactory() != null) {
|
||||
closeRepository();
|
||||
}
|
||||
|
||||
// Load/check settings, which potentially sets up blockchain config, etc.
|
||||
LOGGER.debug(String.format("Using setting file: %s", settingsFilename));
|
||||
|
Loading…
Reference in New Issue
Block a user