Merge pull request #13260 from Heiffeng/fix/20241112

fix(仪表板) 解决有空值下载excel报NPE的问题
This commit is contained in:
xuwei-fit2cloud 2024-11-12 15:59:58 +08:00 committed by GitHub
commit b89e847bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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("'-'");
}
}