提交 82f40bc0 authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStore: support stores in the root directory

上级 e2bfb377
...@@ -120,7 +120,7 @@ public class FileStore { ...@@ -120,7 +120,7 @@ public class FileStore {
this.fileName = fileName; this.fileName = fileName;
FilePath f = FilePath.get(fileName); FilePath f = FilePath.get(fileName);
FilePath parent = f.getParent(); FilePath parent = f.getParent();
if (!parent.exists()) { if (parent != null && !parent.exists()) {
throw DataUtils.newIllegalArgumentException("Directory does not exist: {0}", parent); throw DataUtils.newIllegalArgumentException("Directory does not exist: {0}", parent);
} }
if (f.exists() && !f.canWrite()) { if (f.exists() && !f.canWrite()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论