nullをキャッチするようにした

This commit is contained in:
r-ca 2024-01-21 16:15:11 +09:00
parent 0da5e8a961
commit d7f22c8e36
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -62,6 +62,10 @@ public class FileManagerImpl implements FileManager {
try { try {
resolvedPath = resolvedPath.resolve(pathPart); resolvedPath = resolvedPath.resolve(pathPart);
} catch (Exception e) { } catch (Exception e) {
logger.error("resolveStringPath", e.getMessage());
logger.debug("resolveStringPath", "this.path: " + this.path);
logger.debug("resolveStringPath", "pathPart: " + pathPart);
logger.debug("resolveStringPath", "resolvedPath: " + resolvedPath);
throw new IOException("Invalid path: " + path); throw new IOException("Invalid path: " + path);
} }
} }