mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-83586 - NPE: JavaSafeDeleteProcessor.findConflicts
This commit is contained in:
@@ -267,7 +267,10 @@ public class JavaSafeDeleteProcessor extends SafeDeleteProcessorDelegateBase {
|
||||
if (methodRefFound != null) {
|
||||
Collection<String> result = new ArrayList<>();
|
||||
result.add(methodRefFound);
|
||||
result.addAll(super.findConflicts(element, elements, usages));
|
||||
final Collection<String> conflicts = super.findConflicts(element, elements, usages);
|
||||
if (conflicts != null) {
|
||||
result.addAll(conflicts);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return super.findConflicts(element, elements, usages);
|
||||
|
||||
+1
@@ -43,6 +43,7 @@ public abstract class SafeDeleteProcessorDelegateBase implements SafeDeleteProce
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Collection<String> findConflicts(PsiElement element, PsiElement[] elements, UsageInfo[] usages) {
|
||||
return findConflicts(element, elements);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user