created an attachment (id=158274)
report design

npe was thrown out while previewing report

test build:
birt2.5.2 v20100205-0930

step to reproduce:

1 use the report attached
2 preview it 

error log:
caused by: java.lang.nullpointerexception
	at org.eclipse.birt.chart.reportitem.chartreportitempresentationbase.setmodelobject(chartreportitempresentationbase.java:192)
	at org.eclipse.birt.report.engine.extension.reportitempresentationbase.init(reportitempresentationbase.java:61)
	at org.eclipse.birt.chart.reportitem.chartreportitempresentationproxy.init(chartreportitempresentationproxy.java:52)
	at org.eclipse.birt.report.engine.presentation.localizedcontentvisitor.processextendedcontent(localizedcontentvisitor.java:961)
	at org.eclipse.birt.report.engine.presentation.localizedcontentvisitor.localizeforeign(localizedcontentvisitor.java:579)
	at org.eclipse.birt.report.engine.presentation.localizedcontentvisitor.localize(localizedcontentvisitor.java:163)
	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.htmlpagelm.layout(htmlpagelm.java:90)
	at org.eclipse.birt.report.engine.layout.html.htmlreportlayoutengine.layout(htmlreportlayoute
created an attachment (id=158275)
library
i can't reproduce it. however it's potential npe.
added null check to avoid npe caused by invalid report.
preview result is blank without exception.
fail test with 2.5.2 daily build 20100209-0630
the cause is the tag of code was forgotten.now fixed by tagging chart code as v20100209.

verified and closed in daily build 20100210-0630.