Change Signature: Skip PsiMethods without containing class

#KT-8536 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-07 16:45:10 +03:00
parent 33c93eb4a9
commit b76c47151c
@@ -434,6 +434,8 @@ public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro
PsiElement method = changeInfo.getMethod();
if (!RefactoringPackage.isTrueJavaMethod(method)) return;
if (((PsiMethod) method).getContainingClass() == null) return;
FunctionDescriptor methodDescriptor = JavaResolutionUtils.getJavaMethodDescriptor((PsiMethod) method);
assert methodDescriptor != null;