mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix logic of enabling Override Methods in Python (PY-1132)
This commit is contained in:
@@ -39,7 +39,7 @@ public class PyOverrideImplementUtil {
|
||||
if (element == null) {
|
||||
// are we in whitespace after last class? PY-440
|
||||
final PsiElement lastChild = file.getLastChild();
|
||||
if (lastChild instanceof PsiWhiteSpace &&
|
||||
if (lastChild != null &&
|
||||
offset >= lastChild.getTextRange().getStartOffset() &&
|
||||
offset <= lastChild.getTextRange().getEndOffset()) {
|
||||
element = lastChild;
|
||||
|
||||
Reference in New Issue
Block a user