Change Signature: Skip PsiMethods without containing class
#KT-8536 Fixed
This commit is contained in:
+2
@@ -434,6 +434,8 @@ public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro
|
|||||||
PsiElement method = changeInfo.getMethod();
|
PsiElement method = changeInfo.getMethod();
|
||||||
if (!RefactoringPackage.isTrueJavaMethod(method)) return;
|
if (!RefactoringPackage.isTrueJavaMethod(method)) return;
|
||||||
|
|
||||||
|
if (((PsiMethod) method).getContainingClass() == null) return;
|
||||||
|
|
||||||
FunctionDescriptor methodDescriptor = JavaResolutionUtils.getJavaMethodDescriptor((PsiMethod) method);
|
FunctionDescriptor methodDescriptor = JavaResolutionUtils.getJavaMethodDescriptor((PsiMethod) method);
|
||||||
assert methodDescriptor != null;
|
assert methodDescriptor != null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user