linePos = buffer.createPosition(map.getElement(lineNo) .getStartOffset());
Element lineElement = map.getElement(lineNo); if(lineElement != null) { linePos = buffer.createPosition(lineElement .getStartOffset()); }
	private void openNotify(Buffer buffer)	{		this.buffer = buffer;		Element map = buffer.getDefaultRootElement();		try		{			linePos = buffer.createPosition(map.getElement(lineNo)				.getStartOffset());		}		catch(Exception e)		{			e.printStackTrace();		}	}