fix(JavaLangDoc): skip new doc null

This commit is contained in:
林万程
2024-01-26 19:53:42 +08:00
parent 95458c2c5e
commit b0cd5ad4e1

View File

@@ -65,7 +65,10 @@ public class JavaLangDoc extends BaseTagLangDoc<PsiDocComment> {
if (navElement instanceof PsiMethod) {
resolve = (PsiMethod) navElement;
}
return resolveDocPrint(info, resolve);
@Nullable String s = resolveDocPrint(info, resolve);
if (s != null) {
return s;
}
}
} catch (Throwable ignore) {
// ignore