fix FileHandlerService#pdf2jpg npe (github issue #455)

This commit is contained in:
陈精华
2023-05-12 23:14:11 +08:00
parent 5dbc8a4980
commit c222755acc

View File

@ -276,7 +276,7 @@ public class FileHandlerService {
} }
} }
//判断是否加密文件 加密文件不缓存 //判断是否加密文件 加密文件不缓存
if (PDF_PASSWORD_MSG.equals(pdfPassword)) { if (!PDF_PASSWORD_MSG.equals(pdfPassword)) {
this.addPdf2jpgCache(pdfFilePath, pageCount); this.addPdf2jpgCache(pdfFilePath, pageCount);
} }
} catch (IOException e) { } catch (IOException e) {