Bug 199225 [Automation][Regression] NPE caught when preview attached report in web viewer
steps to reproduce: - use the attached report design - preview in web viewer expected behavior: - report should be rendered properly actual behavior: - NPE caught
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/buffer/HTMLPageBuffer.java
{
				context.setPageNumber( context.getPageNumber( ) + 1 );
			}
		}
		else
		{
			if(finished && context.getPageNumber( )==1)
			{
				currentNode.end(  );
				pageBreakEvent( );
			}
		}
		
		generator.reset( );
		context.removeLayoutHint( );
		context.clearPageHint( );
		currentNode = null;
	}
	
	protected void pageBreakEvent( )
	{
		context.setPageHint( generator.getPageHint( ) );
		long pageNumber = context.getPageNumber( );
		ILayoutPageHandler pageHandler = context.getLayoutEngine( ).getPageHandler( );
		if ( pageHandler != null )
		{
			pageHandler.onPage( pageNumber, context );
		}
		
	}