fix: FjTool parseFileList 中 uuid 参数为 null 时的 NPE

This commit is contained in:
yukaidi
2026-05-29 02:54:00 +08:00
parent dc629a3126
commit fa4028296f

View File

@@ -456,7 +456,10 @@ public class FjTool extends PanBase {
// 如果参数里的目录ID不为空则直接解析目录 // 如果参数里的目录ID不为空则直接解析目录
String dirId = (String) shareLinkInfo.getOtherParam().get("dirId"); String dirId = (String) shareLinkInfo.getOtherParam().get("dirId");
if (dirId != null && !dirId.isEmpty()) { if (dirId != null && !dirId.isEmpty()) {
uuid = shareLinkInfo.getOtherParam().get("uuid").toString(); Object uuidObj = shareLinkInfo.getOtherParam().get("uuid");
if (uuidObj != null) {
uuid = uuidObj.toString();
}
parserDir(dirId, shareId, promise0); parserDir(dirId, shareId, promise0);
return promise0.future(); return promise0.future();
} }