Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

autopoi模板导出,赋值的方法建议增加空判断或抛出异常说明。 #3005

Closed
ChangYunQing opened this issue Sep 8, 2021 · 2 comments

Comments

@ChangYunQing
Copy link

版本号:2.4.5
问题描述:autopoi模板导出,赋值的方法建议增加空判断或抛出异常说明。

PoiPublicUtil.getRealValue()里
currentText = currentText.replace("{{" + params + "}}", obj.toString());
obj.toString()为空时抛空指针,不能看出具体错误。

截图&代码:

image

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@zhangdaiscott
Copy link
Member

收录 ty

@tygithub1
Copy link

已修改

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants