try Exception fixed #29

This commit is contained in:
林万程
2023-03-27 19:05:45 +08:00
parent e2b920c9d9
commit 66d3dac73b

View File

@@ -48,7 +48,12 @@ class PsiMethodToPsiDoc {
@Nullable
static PsiDocComment supperMethodDoc(@NotNull PsiMethod psiMethod) {
@NotNull PsiMethod[] superMethods = psiMethod.findSuperMethods();
@NotNull PsiMethod[] superMethods;
try {
superMethods = psiMethod.findSuperMethods();
} catch (Exception e) {
return null;
}
for (@NotNull PsiMethod superMethod : superMethods) {
@Nullable PsiDocComment superDoc = OwnerToPsiDocUtils.methodDoc(superMethod);
if (superDoc != null) {