Commit 3d3e89cc authored by neo.wang's avatar neo.wang

Merge branch 'dev_neo3' into 'dev'

[bugfix] null point when bb reference a mual cell

See merge request root/atms!104
parents 2c4b4601 12497fd3
......@@ -599,7 +599,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
List<PCTEntity> entities = formulaMapToPCT.get(pctStr);
BigDecimal result = new BigDecimal("0");
for (PCTEntity entity : entities) {
result = result.add(pctCache.get(entity));
result = pctCache.containsKey(entity) ? result.add(pctCache.get(entity)) : result;
}
k.setParsedFormula(k.getParsedFormula().replace(pctStr, result.toString()));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment