From 11a11378ff3137a3d1064832b65817094802c13e Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Mon, 16 Oct 2017 17:17:12 +0300 Subject: [PATCH] Treat empty property values as empty list, not as list of an empty string. --- .../main/kotlin/org/jetbrains/kotlin/konan/target/Properties.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Properties.kt b/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Properties.kt index 9dea8a652ce..e3111c9d6ec 100644 --- a/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Properties.kt +++ b/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Properties.kt @@ -48,6 +48,8 @@ fun Properties.propertyString(key: String, suffix: String? = null): String? */ fun Properties.propertyList(key: String, suffix: String? = null): List { val value = this.getProperty(key.suffix(suffix)) ?: this.getProperty(key) + if (value?.isBlank() == true) return emptyList() + return value?.split(' ') ?: emptyList() }