From 616c32483c360bb5aa974a6655d9b76e01dc84b1 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Wed, 26 Jul 2017 15:24:34 +0300 Subject: [PATCH] J2K: CommonToolArguments and inheritors Original commit: 50599c933f646563866f4532e8d1a324249372ff --- .../src/org/jetbrains/kotlin/config/facetSerialization.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jps/jps-common/src/org/jetbrains/kotlin/config/facetSerialization.kt b/jps/jps-common/src/org/jetbrains/kotlin/config/facetSerialization.kt index ae75fa519bd..fc597ec0ea6 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/config/facetSerialization.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/config/facetSerialization.kt @@ -137,7 +137,7 @@ fun deserializeFacetSettings(element: Element): KotlinFacetSettings { } fun CommonCompilerArguments.convertPathsToSystemIndependent() { - pluginClasspaths?.forEachIndexed { index, s -> pluginClasspaths[index] = PathUtil.toSystemIndependentName(s) } + pluginClasspaths?.forEachIndexed { index, s -> pluginClasspaths!![index] = PathUtil.toSystemIndependentName(s) } when (this) { is K2JVMCompilerArguments -> { @@ -145,7 +145,7 @@ fun CommonCompilerArguments.convertPathsToSystemIndependent() { classpath = PathUtil.toSystemIndependentName(classpath) jdkHome = PathUtil.toSystemIndependentName(jdkHome) kotlinHome = PathUtil.toSystemIndependentName(kotlinHome) - friendPaths?.forEachIndexed { index, s -> friendPaths[index] = PathUtil.toSystemIndependentName(s) } + friendPaths?.forEachIndexed { index, s -> friendPaths!![index] = PathUtil.toSystemIndependentName(s) } declarationsOutputPath = PathUtil.toSystemIndependentName(declarationsOutputPath) }