EA-129831 - NPE: KindSorter$.getWeight

This commit is contained in:
Alexey Kudravtsev
2018-12-26 15:19:59 +03:00
parent 51cbd6f596
commit 828f66d1ae

View File

@@ -57,7 +57,7 @@ public class KindSorter implements Sorter {
final PsiMethodTreeElement methodTreeElement = (PsiMethodTreeElement)value;
final PsiMethod method = methodTreeElement.getMethod();
return method.isConstructor() ? 30 : 35;
return method != null && method.isConstructor() ? 30 : 35;
}
if (value instanceof PropertyGroup) {
return 40;