aboutsummaryrefslogtreecommitdiff
path: root/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-15 14:30:40 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-15 14:37:09 +0300
commit17c87f18f03b2c31b68251b17cbfa2531e0bd63c (patch)
tree155938792ae21ae877b13f75f7a0d1fb5c835695 /runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
parent106b821dc7c9142c24040c5acebb6847de04d9d3 (diff)
downloaddokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.tar.gz
dokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.tar.bz2
dokka-17c87f18f03b2c31b68251b17cbfa2531e0bd63c.zip
Throw exception when unable to collect classpath for android dokka
Diffstat (limited to 'runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt')
-rw-r--r--runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
index 5d8cadfc..5db2ad2f 100644
--- a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
+++ b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
@@ -46,7 +46,7 @@ private class AndroidSdkProvider(private val project: Project) : SdkProvider {
private val allVariantsClassPath by lazy {
try {
- variantManager?.variantDataList?.flatMap { it.variantConfiguration.compileClasspath }.orEmpty()
+ variantManager?.variantDataList?.flatMap { it.variantConfiguration.compileClasspath }!!
} catch(e: Exception) {
throw Exception("Unsupported version of android build tools, could not access variant manager.", e)
}