mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
EA-129831 - NPE: KindSorter$.getWeight
This commit is contained in:
@@ -57,7 +57,7 @@ public class KindSorter implements Sorter {
|
|||||||
final PsiMethodTreeElement methodTreeElement = (PsiMethodTreeElement)value;
|
final PsiMethodTreeElement methodTreeElement = (PsiMethodTreeElement)value;
|
||||||
final PsiMethod method = methodTreeElement.getMethod();
|
final PsiMethod method = methodTreeElement.getMethod();
|
||||||
|
|
||||||
return method.isConstructor() ? 30 : 35;
|
return method != null && method.isConstructor() ? 30 : 35;
|
||||||
}
|
}
|
||||||
if (value instanceof PropertyGroup) {
|
if (value instanceof PropertyGroup) {
|
||||||
return 40;
|
return 40;
|
||||||
|
|||||||
Reference in New Issue
Block a user