Skip to content

Commit 09222db

Browse files
committed
Fix BspPathUtil defaultVmfPath
1 parent e50bf6f commit 09222db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bspsrc-app/src/main/java/info/ata4/bspsrc/app/util/BspPathUtil.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public static Path defaultVmfPath(Path bspPath, Path vmfDirPath) {
1111
vmfDirPath = bspPath.getParent();
1212

1313
String base = PathUtil.nameWithoutExtension(bspPath).orElse("");
14-
return vmfDirPath.resolve(base + "_d.vmf");
14+
15+
Path fileName = Path.of(base + "_d.vmf");
16+
return vmfDirPath == null ? fileName : vmfDirPath.resolve(fileName);
1517
}
1618
}

0 commit comments

Comments
 (0)