Consider range marker with bad interval to be invalid (EA-141900, EA-135531)
This commit is contained in:
@@ -39,10 +39,7 @@ val RangeMarker.range: TextRange?
|
|||||||
if (start in 0..end) {
|
if (start in 0..end) {
|
||||||
TextRange(start, end)
|
TextRange(start, end)
|
||||||
} else {
|
} else {
|
||||||
// Probably a race condition had happened
|
// Probably a race condition had happened and range marker is invalidated
|
||||||
LOG.error("Invalid range [$start, $end] for range marker (valid = $isValid)")
|
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
} else null
|
} else null
|
||||||
|
|
||||||
private val LOG = Logger.getInstance("RangeUtils")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user