mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-10-07 15:14:29 +08:00
[fixed] getRelFilePath 返回null 导致KkFileUtils.isAllowedUpload的空指针异常
This commit is contained in:
@@ -49,7 +49,7 @@ public class DownloadUtils {
|
||||
}
|
||||
ReturnResponse<String> response = new ReturnResponse<>(0, "下载成功!!!", "");
|
||||
String realPath = getRelFilePath(fileName, fileAttribute);
|
||||
if (!KkFileUtils.isAllowedUpload(realPath)) {
|
||||
if (null == realPath || !KkFileUtils.isAllowedUpload(realPath)) {
|
||||
response.setCode(1);
|
||||
response.setContent(null);
|
||||
response.setMsg("下载失败:不支持的类型!" + urlStr);
|
||||
|
Reference in New Issue
Block a user