From 9ec6ae66d199d2ba44274b6b4c26e39273dc46be Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Fri, 18 May 2012 13:16:48 +0400 Subject: [PATCH] non-negative range asserted --- .../intellij/codeInsight/editorActions/moveUpDown/LineRange.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-api/src/com/intellij/codeInsight/editorActions/moveUpDown/LineRange.java b/platform/lang-api/src/com/intellij/codeInsight/editorActions/moveUpDown/LineRange.java index 0b58917e447e..b9fba8d2bf57 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/editorActions/moveUpDown/LineRange.java +++ b/platform/lang-api/src/com/intellij/codeInsight/editorActions/moveUpDown/LineRange.java @@ -33,6 +33,7 @@ public class LineRange { public LineRange(final int startLine, final int endLine) { this.startLine = startLine; this.endLine = endLine; + LOG.assertTrue(startLine > 0, "Negative start line"); if (startLine > endLine) { LOG.error("start > end: start=" + startLine+"; end="+endLine); }