Pentaho Analysis - Mondrian

User-defined function + profiling causes NPE in CalcWriter