if (document.getLength() >= region.getOffset() + region.getLength())
if (region != null && document.getLength() >= region.getOffset() + region.getLength())
	public void setInput(RefactoringStatusContext context) {		FileStatusContext fc= (FileStatusContext)context;		IFile file= fc.getFile();		updateTitle(file);		IDocument document= getDocument(file);		IRegion region= fc.getTextRegion();		if (document.getLength() >= region.getOffset() + region.getLength())			setInput(document, region);		else {			setInput(document, new Region(0, 0));		}	}