Browse Source

修改bug:档案验收>>编写报告非空判断

lvy 3 months ago
parent
commit
5fd3033688

+ 3 - 0
blade-service/blade-archive/src/main/java/org/springblade/archive/utils/ItextPdfUtils.java

@@ -49,6 +49,9 @@ public class ItextPdfUtils {
         twoTable.setWidthPercentage(widthPercentage);
         //设置每页占满
         twoTable.setSplitLate(false);
+        if (text == null) {
+            text = "";
+        }
         String[] split = text.split("\n");
         for (String s : split) {
             PdfPCell cell = pdfTableStyle2(s, size10font);