assert that rangeInElement is inside the descriptor range to avoid surprising "index out of range" exceptions

This commit is contained in:
Alexey Kudravtsev
2017-12-18 14:52:34 +03:00
parent c0c279d60a
commit b2a8cb5f48
6 changed files with 40 additions and 35 deletions
@@ -77,7 +77,7 @@ public class UnsupportedFeatures extends CompatibilityVisitor {
@NotNull
private static IntentionAction createIntention(@NotNull PsiElement node, @NotNull String message, @NotNull LocalQuickFix localQuickFix) {
return createIntention(node, node.getTextRange(), message, localQuickFix);
return createIntention(node, null, message, localQuickFix);
}
@NotNull