fix(仪表板) 解决有空值下载excel报NPE的问题

This commit is contained in:
xiaoju 2024-11-12 10:34:29 +08:00
parent 217da936cc
commit 3f52dba111

View File

@ -98,7 +98,7 @@ public class TableInfoHandler extends DefaultChartHandler {
}
}
assert fieldDTO != null;
if (fieldDTO.isAgg()) {
if (fieldDTO != null && fieldDTO.isAgg()) {
sqlMeta.getXFields().get(i).setFieldName("'-'");
}
}