Bug 197068 Failure occurs inJunit test of org.eclipse.birt.report.engine.tests in daily build 20070719
Failure occurs inJunit test of org.eclipse.birt.report.engine.tests in daily build 20070719. Please see the attachment for details.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/ReportDocumentBuilder.java
if ( offset != -1 )
				{
					return offset;
				}
				return docExt.getPrevious( );
			}
			return -1;
		}
		private InstanceIndex[] createInstanceIndexes( IContent content )
		{
			LinkedList indexes = new LinkedList( );
			while ( content != null
					&& content != content.getReportContent( ).getRoot( ) )
			{
				InstanceID id = content.getInstanceID( );
				long offset = getContentIndex( content );
				indexes.addFirst( new InstanceIndex( id, offset ) );
				content = (IContent) content.getParent( );
			}
			return (InstanceIndex[]) indexes.toArray( new InstanceIndex[]{} );
		}
		private PageSection createPageSection( IContent start, IContent end )
		{
			PageSection section = new PageSection( );
			section.starts = createInstanceIndexes( start );
			section.ends = createInstanceIndexes( end );
			return section;
		}
		public void onPage( long pageNumber, Object context )
		{