Describe the bug
使用webReport.Report.RegisterData向模板注入数据时,如果某个字段为null会引发空指针。
在BarcodeObject.cs中628行;string value = Report.Calc(expression).ToString();
Report.Calc(expression)=null导致ToString空指针
应修复
string value = (Report.Calc(expression) ?? string.Empty).ToString();
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Stacktrace
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
使用webReport.Report.RegisterData向模板注入数据时,如果某个字段为null会引发空指针。
在BarcodeObject.cs中628行;string value = Report.Calc(expression).ToString();
Report.Calc(expression)=null导致ToString空指针
应修复
string value = (Report.Calc(expression) ?? string.Empty).ToString();
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Stacktrace
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
Additional context
Add any other context about the problem here.