From 1ef0f0d6e88400f960ce75ad1e587ca72a3e7f22 Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Mon, 24 Jan 2005 15:53:24 +0300 Subject: [PATCH] (no message) --- .../intellij/psi/util/MethodSignatureBackedByPsiMethod.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openapi/src/com/intellij/psi/util/MethodSignatureBackedByPsiMethod.java b/openapi/src/com/intellij/psi/util/MethodSignatureBackedByPsiMethod.java index 3ed7a4ca1b27..40cf8a642ed2 100644 --- a/openapi/src/com/intellij/psi/util/MethodSignatureBackedByPsiMethod.java +++ b/openapi/src/com/intellij/psi/util/MethodSignatureBackedByPsiMethod.java @@ -47,7 +47,8 @@ public class MethodSignatureBackedByPsiMethod extends MethodSignatureBase { public static MethodSignatureBackedByPsiMethod create(PsiMethod method, PsiSubstitutor substitutor) { final boolean isRaw = PsiUtil.isRawSubstitutor(method, substitutor); - PsiTypeParameter[] methodTypeParameters = method.getTypeParameterList().getTypeParameters(); + final PsiTypeParameterList typeParameterList = method.getTypeParameterList(); + PsiTypeParameter[] methodTypeParameters = typeParameterList != null ? typeParameterList.getTypeParameters() : PsiTypeParameter.EMPTY_ARRAY; final PsiParameter[] parameters = method.getParameterList().getParameters(); PsiType[] parameterTypes = new PsiType[parameters.length]; for (int i = 0; i < parameterTypes.length; i++) {