Browse Source

fix FileHandlerService#pdf2jpg npe (github issue #455)

陈精华 1 year ago
parent
commit
c222755acc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/main/java/cn/keking/service/FileHandlerService.java

+ 1 - 1
server/src/main/java/cn/keking/service/FileHandlerService.java

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