EA-83586 - NPE: JavaSafeDeleteProcessor.findConflicts

This commit is contained in:
Anna Kozlova
2016-06-06 17:52:24 +03:00
parent 0b4390ed9e
commit b32ebc4f36
2 changed files with 5 additions and 1 deletions
@@ -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);
@@ -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);
}