mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-61050 - NPE: JavaSafeDeleteProcessor.findConflicts
This commit is contained in:
@@ -223,7 +223,7 @@ public class JavaSafeDeleteProcessor extends SafeDeleteProcessorDelegateBase {
|
||||
if (element instanceof PsiMethod) {
|
||||
final PsiClass containingClass = ((PsiMethod)element).getContainingClass();
|
||||
|
||||
if (!containingClass.hasModifierProperty(PsiModifier.ABSTRACT)) {
|
||||
if (containingClass != null && !containingClass.hasModifierProperty(PsiModifier.ABSTRACT)) {
|
||||
final PsiMethod[] superMethods = ((PsiMethod) element).findSuperMethods();
|
||||
for (PsiMethod superMethod : superMethods) {
|
||||
if (isInside(superMethod, allElementsToDelete)) continue;
|
||||
|
||||
Reference in New Issue
Block a user