Potential NPE case accounted for in aggregation logic.