Fixed Bug on solve Config
*/
package com.orientechnologies.orient.core.db;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.Callable;
-
import com.orientechnologies.common.exception.OException;
import com.orientechnologies.common.io.OIOUtils;
import com.orientechnologies.common.log.OLogManager;
@@ -48,6 +35,13 @@ import com.orientechnologies.orient.core.storage.OStorage;
import com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage;
import com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Paths;
+import java.util.*;
+import java.util.concurrent.Callable;
+
/**
* Created by tglman on 08/04/16.
*/
@@ -123,8 +117,12 @@ public class OrientDBEmbedded implements OrientDB {
if (config != null) {
config.setParent(this.configurations);
return config;
- } else
- return this.configurations;
+ } else {
+ OrientDBConfig cfg = OrientDBConfig.defaultConfig();
+ cfg.setParent(this.configurations);
+ return cfg;
+ }
+
}
public synchronized OEmbeddedDatabasePool poolOpen(String name, String user, String password, OEmbeddedPoolByFactory pool) {
