if(end >= buffer.getLength())
if(end > buffer.getLength())
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		if(!view.getTextArea().isEditable())		{			view.getToolkit().beep();			return;		}		Buffer buffer = view.getBuffer();		Element map = buffer.getDefaultRootElement();		int lineNo = view.getTextArea().getCaretLine();		Element lineElement = map.getElement(lineNo);		int start = lineElement.getStartOffset();		int end = lineElement.getEndOffset();		if(end >= buffer.getLength())		{			view.getToolkit().beep();			return;		}		Element nextLineElement = map.getElement(lineNo+1);		int nextStart = nextLineElement.getStartOffset();		int nextEnd = nextLineElement.getEndOffset();		try		{			buffer.remove(end - 1,MiscUtilities.getLeadingWhiteSpace(				buffer.getText(nextStart,nextEnd - nextStart)) + 1);		}		catch(BadLocationException bl)		{			Log.log(Log.ERROR,this,bl);		}	}