mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
JavaClassNameInsertHandler: avoid EA-89320 - ISE: OffsetMap.getOffset
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ class JavaClassNameInsertHandler implements InsertHandler<JavaPsiClassReferenceE
|
||||
if (ref == null || !ref.isQualified()) {
|
||||
PsiTypeLookupItem.addImportForItem(context, psiClass);
|
||||
}
|
||||
if (context.getOffset(refEnd) < 0) {
|
||||
if (!context.getOffsetMap().containsOffset(refEnd)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user