path can be null in case of jdk9

This commit is contained in:
Alexey Kudravtsev
2017-04-25 17:19:19 +03:00
parent f76cb1457c
commit 526d4f0c2c
@@ -1234,7 +1234,9 @@ public class BuildManager implements Disposable {
final List<String> launcherCp = new ArrayList<>();
launcherCp.add(ClasspathBootstrap.getResourcePath(launcherClass));
launcherCp.addAll(BuildProcessClasspathManager.getLauncherClasspath(project));
launcherCp.add(compilerPath);
if (compilerPath != null) { // can be null in case of jdk9
launcherCp.add(compilerPath);
}
ClasspathBootstrap.appendJavaCompilerClasspath(launcherCp, shouldIncludeEclipseCompiler(projectConfig));
cmdLine.addParameter("-classpath");
cmdLine.addParameter(classpathToString(launcherCp));