We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b16967c commit d8efa32Copy full SHA for d8efa32
server/src/main/java/utils/PathUtils.java
@@ -48,6 +48,8 @@ public static String extractBasePath(String fullPath) {
48
* @return the file URI
49
*/
50
public static String toFileUri(String filePath) {
51
+ if (filePath == null) return "";
52
+
53
String normalized = filePath.replace("\\", "/");
54
// Windows (C:/path)
55
if (!normalized.isEmpty() && normalized.charAt(1) == ':') {
0 commit comments