Bug 182687 Exception thrown out when preview crosstab with toc setting
When preview crosstab which has set the toc property, exception will be thrown. Engine need to handle the case during toc processing while no IR object is associated with current content object. java.lang.NullPointerException at org.eclipse.birt.report.engine.executor.ReportItemExecutor.startTOCEntry(ReportItemExecutor.java:591) at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:140) at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:36) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layoutChildren(HTMLPageLM.java:124) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java
return parent;
	}
	/**
	 * Execute a report item design and transfer report instance to emitter by
	 * calling this method.
	 * <p>
	 * According to the report item design and current context information,
	 * executor calculate expression in report item design, get data instance
	 * from data source, and fill it into the report item instance, and set
	 * property for the report item instance. At last pass the instance to
	 * <code>emitter</code>
	 * 
	 * @param item
	 *            the report item design
	 * @param emitter
	 *            the report emitter
	 */
	public void execute( ReportItemDesign item, IContentEmitter emitter )
	{
		execute( );
		while ( hasNextChild( ) )
		{
			if ( context.isCanceled( ) )
			{
				break;
			}
			ReportItemExecutor child = (ReportItemExecutor) getNextChild( );
			child.setContext( executorContext );
			child.execute( child.getDesign( ), emitter );
		}