if (start > end || start < 0 || end > contentLength) {
if (start < 0 || end < 0 || start > contentLength || end > contentLength) {
public void setSelectionRange(int start, int length) {	checkWidget();	int contentLength = getCharCount();	int end = start + length;		if (start > end || start < 0 || end > contentLength) {		SWT.error(SWT.ERROR_INVALID_RANGE);	}	if (isLineDelimiter(start) || isLineDelimiter(end)) {		// the start offset or end offset of the selection range is inside a 		// multi byte line delimiter. This is an illegal operation and an exception 		// is thrown. Fixes 1GDKK3R		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}						internalSetSelection(start, length, false);	// always update the caret location. fixes 1G8FODP	setCaretLocation();	if (isBidi()) {		setBidiKeyboardLanguage();		}}