if ( beginIndex + 1 >= page.getPreviewImagePath( ).length( ) )
if ( beginIndex + 1 >= page.getPreviewImagePath( ).length( ) || beginIndex == -1 )
	private void setDesignFile( String fileName ) throws DesignFileException,			SemanticException, IOException	{		ReportDesignHandle handle = SessionHandleAdapter.getInstance( )				.getSessionHandle( )				.openDesign( fileName );		if ( !page.getDisplayName( ).equals( "" ) ) //$NON-NLS-1$			handle.setDisplayName( page.getDisplayName( ) );		if ( !page.getDescription( ).equals( "" ) ) //$NON-NLS-1$			handle.setProperty( ModuleHandle.DESCRIPTION_PROP,					page.getDescription( ) );		if ( !page.getPreviewImagePath( ).equals( "" ) ) //$NON-NLS-1$		{			int beginIndex = page.getPreviewImagePath( )					.lastIndexOf( File.separator );			String shortName = null;			if ( beginIndex + 1 >= page.getPreviewImagePath( ).length( ) )			{				shortName = page.getPreviewImagePath( );			}			else			{				shortName = page.getPreviewImagePath( )						.substring( beginIndex + 1 );			}			handle.setIconFile( shortName );		}		// if ( !page.getCheetSheetPath( ).equals( "" ) ) //$NON-NLS-1$		// handle.setCheetSheet( page.getCheetSheetPath( ) );		handle.save( );		handle.close( );	}