fix(X-Pack): 定时报告导出视图excel报错空指针
This commit is contained in:
parent
6f50792256
commit
c8e1e73fca
@ -135,9 +135,9 @@ public class ViewExportExcel {
|
||||
for (int i = 0; i < headKeys.size(); i++) {
|
||||
String key = headKeys.get(i);
|
||||
Object val = row.get(key);
|
||||
if (ObjectUtils.isEmpty(val))
|
||||
if (ObjectUtils.isEmpty(val)) {
|
||||
tempList.add(StringUtils.EMPTY);
|
||||
if (fieldTypes.get(i) == 3) {
|
||||
} else if (fieldTypes.get(i) == 3) {
|
||||
tempList.add(filterInvalidDecimal(val.toString()));
|
||||
} else {
|
||||
tempList.add(val.toString());
|
||||
@ -160,4 +160,10 @@ public class ViewExportExcel {
|
||||
}
|
||||
return sourceNumberStr;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<String> list = new ArrayList<>();
|
||||
list.add(null);
|
||||
System.out.println(111);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user