|
@@ -782,7 +782,8 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
String url = file.getPdfFileUrl();
|
|
|
if (StringUtil.isEmpty(url)) {
|
|
|
String fileUrl = file.getFileUrl();
|
|
|
- if (fileUrl.endsWith(".pdf") || fileUrl.endsWith(".PDF")) {
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(fileUrl) && fileUrl.endsWith(".pdf") || fileUrl.endsWith(".PDF")) {
|
|
|
url = file.getFileUrl();
|
|
|
}
|
|
|
}
|