@@ -18,7 +18,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>2.5.4</version>
+ <version>2.5.6</version>
<relativePath/>
</parent>
@@ -137,7 +137,10 @@ public class WordUtil {
insert.forEach((k, v) -> {
XWPFRun run = p.insertNewRun(k);
- run.setText(v);
+ if (run != null) {
+ logger.error("can't insert run for formule,index={},value={}",k,v);
+ run.setText(v);
+ }
});
return true;