diff options
author | Douglas Sigelbaum <sigelbaum@google.com> | 2018-02-01 11:50:44 -0800 |
---|---|---|
committer | Douglas Sigelbaum <sigelbaum@google.com> | 2018-02-01 11:50:44 -0800 |
commit | a82699faae3ba7eaceb560c6b805e04fbf9ea621 (patch) | |
tree | 58fd46a1ed85d533dda7dbcfdbc4b458f9ba3f75 /core/src/main/kotlin/Formats/DacHtmlFormat.kt | |
parent | 2c5a734d0d423028f62cd36593b41e2bfcbc25fd (diff) | |
download | dokka-a82699faae3ba7eaceb560c6b805e04fbf9ea621.tar.gz |
Fixed RTE in template service.
Diffstat (limited to 'core/src/main/kotlin/Formats/DacHtmlFormat.kt')
-rw-r--r-- | core/src/main/kotlin/Formats/DacHtmlFormat.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Formats/DacHtmlFormat.kt b/core/src/main/kotlin/Formats/DacHtmlFormat.kt index 07fff1e07..b7c102b36 100644 --- a/core/src/main/kotlin/Formats/DacHtmlFormat.kt +++ b/core/src/main/kotlin/Formats/DacHtmlFormat.kt @@ -21,9 +21,6 @@ class DevsiteHtmlTemplateService @Inject constructor( override fun composePage(page: JavaLayoutHtmlFormatOutputBuilder.Page, tagConsumer: TagConsumer<Appendable>, headContent: HEAD.() -> Unit, bodyContent: BODY.() -> Unit) { tagConsumer.html { attributes["devsite"] = "true" - run { - val x = 0 - } head { headContent() meta(name = "top_category") { attributes["value"] = "develop" } @@ -50,6 +47,9 @@ class DevsiteHtmlTemplateService @Inject constructor( * for highlighting the current page in the left nav of DAC. */ private fun Appendable.appendDataReferenceResourceWrapper(nodes: Iterable<DocumentationNode>) { + if (nodes.none()) { + return + } val node = nodes.first() if (node.isPackage()) { val children = node.getMembersOfKinds(NodeKind.Class, NodeKind.Interface, NodeKind.Enum, |