diff --git a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt index 8dcd0e22e9a..735051f07f6 100644 --- a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt +++ b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt @@ -57,7 +57,13 @@ object KDocRenderer { to.append("
").append("See Also:").append("") to.append("
") seeTags.forEachIndexed { index, tag -> - DocumentationManagerUtil.createHyperlink(to, tag.getSubjectName(), tag.getSubjectName(), false) + val subjectName = tag.getSubjectName() + if (subjectName != null) { + DocumentationManagerUtil.createHyperlink(to, subjectName, subjectName, false) + } + else { + to.append(tag.getContent()) + } if (index < seeTags.size() - 1) { to.append(", ") } diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt index 0d608a1bf20..1b05406a617 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt @@ -1,6 +1,7 @@ /** * @see C * @see D + * @see kotlin */ fun testMethod() { @@ -17,4 +18,4 @@ fun test() { } //INFO: public fun testMethod(): Unit defined in root package
-//INFO:
See Also:
C, D
+//INFO:
See Also:
C, D, kotlin