Bug 175776 [smoke]Can not export data in Web viewer[02]
Description: No data is exported after export data from Web viewer Build number: 2.2.0.v20070228-0630 Steps to reproduce: 1, Drag a dataset into layout 2, Preview the report in Web Viewer 3, Click Export Data 4, Select the columns and click OK button 5, Open the exportdata.csv Expected result: The data of column are exported in the csv file Actual result: <html><head><title>Error</title><body><font color="red">java.lang.NullPointerException</font></body></html> in the csv file Error log:
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
}
		}
	}
	/**
	 * Returns lastModified of report design file. If file doesn't exist, return
	 * -1L;
	 * 
	 * @param request
	 * @return
	 */
	protected long getLastModifiedOfDesign( HttpServletRequest request )
	{
		String designFile = ParameterAccessor.getParameter( request,
				ParameterAccessor.PARAM_REPORT );
		if ( designFile == null )
			return -1L;
		
		File file = new File( this.reportDesignName );
		if ( file != null && file.exists( ) )
		{
			if ( file.isFile( ) )
				return file.lastModified( );
		}
		else
		{
			
			try
			{
				if ( !designFile.startsWith( "/" ) ) 
					designFile = "/" + designFile;