mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
EA-704298 IOOBE: CharSequenceSubSequence.<init>
GitOrigin-RevId: 474a2ec4c7414e78a460165ba53e652162af868f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b37616b3f5
commit
3ce30531ae
@@ -66,7 +66,11 @@ public class XmlSmartEnterProcessor extends SmartEnterProcessor {
|
||||
}
|
||||
|
||||
if (tagNameText == null) {
|
||||
tagNameText = text.subSequence(tagAtCaret.getTextRange().getStartOffset() + 1, caretAt);
|
||||
int start = tagAtCaret.getTextRange().getStartOffset() + 1;
|
||||
if (start > caretAt) {
|
||||
return false;
|
||||
}
|
||||
tagNameText = text.subSequence(start, caretAt);
|
||||
}
|
||||
|
||||
final PsiElement element = psiFile.findElementAt(probableCommaOffset);
|
||||
|
||||
Reference in New Issue
Block a user