Outdated stub in index of cached PSI class Exception. fixed #29

This commit is contained in:
林万程
2023-05-25 07:11:01 +08:00
parent 1a249543e4
commit 2c6f96712b

View File

@@ -19,7 +19,11 @@ public class OwnerToPsiDocUtils {
if (navElement instanceof PsiDocCommentOwner) {
psiDocCommentOwner = (PsiDocCommentOwner) navElement;
}
return psiDocCommentOwner.getDocComment();
try {
return psiDocCommentOwner.getDocComment();
} catch (Exception e) {
return null;
}
}
@Nullable