Commit 12497fd3 authored by neo's avatar neo

[bugfix] null point when bb reference a mual cell

parent 44e9ea72
......@@ -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