|
@@ -137,7 +137,10 @@ public class WordUtil {
|
|
|
|
|
|
insert.forEach((k, v) -> {
|
|
insert.forEach((k, v) -> {
|
|
XWPFRun run = p.insertNewRun(k);
|
|
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;
|
|
return true;
|
|
|
|
|