Skip to content

Commit

Permalink
bugfix: Fix Potential Row Misalignment or Data Corruption When Using …
Browse files Browse the repository at this point in the history
…Fill for Empty Data
  • Loading branch information
psxjoy committed Dec 20, 2024
1 parent e0b29bf commit 9b066e4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ private void doFill(List<AnalysisCell> analysisCellList, Object oneRowData, Fill

for (String variable : analysisCell.getVariableList()) {
cellValueBuild.append(analysisCell.getPrepareDataList().get(index++));
if (!dataKeySet.contains(variable)) {
continue;
Object value = null;
if (dataKeySet.contains(variable)) {
value = dataMap.get(variable);
}
Object value = dataMap.get(variable);
ExcelContentProperty excelContentProperty = ClassUtils.declaredExcelContentProperty(dataMap,
writeContext.currentWriteHolder().excelWriteHeadProperty().getHeadClazz(), variable,
writeContext.currentWriteHolder());
Expand Down

0 comments on commit 9b066e4

Please sign in to comment.