Bug fix for SU mode

This commit is contained in:
Eugene Livis 2020-07-17 16:56:06 -04:00
parent 58178a8192
commit 67817c4b98

View File

@ -1062,6 +1062,7 @@ public class Server {
}
}
} else {
if (!coreIsLoaded(collectionName)) {
// In single user mode, the index is stored in case output directory
File dataDir = new File(new File(index.getIndexPath()).getParent()); // "data dir" is the parent of the index directory
if (!dataDir.exists()) {
@ -1081,6 +1082,7 @@ public class Server {
throw new KeywordSearchModuleException(NbBundle.getMessage(this.getClass(), "Server.openCore.exception.noIndexDir.msg"));
}
}
}
return new Collection(collectionName, theCase, index);