IDEA-86987 Groovy: NPE at GroovyRefactoringUtil$1.compare()

This commit is contained in:
Maxim.Medvedev
2012-06-04 18:05:29 +04:00
parent 630facb9fd
commit f42648e7ee
@@ -135,7 +135,7 @@ public abstract class GroovyRefactoringUtil {
ArrayList<PsiElement> occurrences = new ArrayList<PsiElement>();
Comparator<PsiElement> comparator = new Comparator<PsiElement>() {
public int compare(PsiElement element1, PsiElement element2) {
if (element1.equals(element2)) return 0;
if (element1 != null && element1.equals(element2)) return 0;
if (element1 instanceof GrParameter &&
element2 instanceof GrParameter) {