Project: Birt
Bug 284813 [Automation][Smoke]NPE was thrown out while previewing report containing data item
Reported: 2009-07-27 21:33:20 | Status: closed fixed

Description: NPE was thrown out while previewing report containing data item. Test Build: BIRT2.5.1 v20090728-0630 Step to reproduce: 1. Create a integer data item in report. 2. Preview the report. Error log: Caused by: java.lang.NullPointerException at com.ibm.icu.util.ULocale$IDParser.<init>(ULocale.java:1273) at com.ibm.icu.util.ULocale$IDParser.<init>(ULocale.java:1269) at com.ibm.icu.util.ULocale$IDParser.<init>(ULocale.java:1268) at com.ibm.icu.util.ULocale.getName(ULocale.java:1186) at com.ibm.icu.util.ULocale.<init>(ULocale.java:807) at org.eclipse.birt.report.engine.executor.ExecutionContext.getNumberFormatter(ExecutionContext.java:1585) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.format(LocalizedContentVisitor.java:354) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processData(LocalizedContentVisitor.java:309) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localizeData(LocalizedContentVisitor.java:282) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:158) at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java