@Override
	public void selectRange(int anchorParagraph, int anchorColumn, int caretPositionParagraph, int caretPositionColumn) {
		if (anchorParagraph >= 0 && anchorParagraph < getParagraphs().size() &&
				caretPositionParagraph >= 0 && caretPositionParagraph < getParagraphs().size())
			super.selectRange(anchorParagraph, anchorColumn, caretPositionParagraph, caretPositionColumn);
	}
Code area with additional parameter checks for some common edge cases.

@author Matt Coley
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/SafeCodeArea.java