mirror of
https://github.com/dataease/dataease.git
synced 2026-06-10 05:36:54 +08:00
fix(X-Pack): 定时报告导出视图excel报错空指针
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user