mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +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 PsiMethod method = methodTreeElement.getMethod();
|
||||
|
||||
return method.isConstructor() ? 30 : 35;
|
||||
return method != null && method.isConstructor() ? 30 : 35;
|
||||
}
|
||||
if (value instanceof PropertyGroup) {
|
||||
return 40;
|
||||
|
||||
Reference in New Issue
Block a user