From 17c87f18f03b2c31b68251b17cbfa2531e0bd63c Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 15 May 2017 14:30:40 +0300 Subject: Throw exception when unable to collect classpath for android dokka --- runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runners/android-gradle-plugin') 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) } -- cgit