diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index ddefaf6b..faf7e971 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -132,12 +132,13 @@ public class FileManagerImpl implements FileManager { @Override public FileManager resolve(String path) throws IOException{ + Path resolvedPath; try { - this.path = resolveStringPath(path); + resolvedPath = resolveStringPath(path); } catch (IOException e) { logger.error("resolve", e.getMessage()); throw new IOException("Invalid path: " + path); } - return this; + return this.setPath(resolvedPath); } }