Configure kotlin: fix NPE for Idea 145 of higher

#KT-11772 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-04-05 13:56:40 +03:00
parent dec53c8d6c
commit e2f464ccc6
@@ -289,7 +289,10 @@ public abstract class KotlinWithGradleConfigurator implements KotlinProjectConfi
}
@Nullable
private static GroovyFile getBuildGradleFile(Project project, String path) {
private static GroovyFile getBuildGradleFile(Project project, @Nullable String path) {
if (path == null) {
return null;
}
VirtualFile file = VfsUtil.findFileByIoFile(new File(path), true);
if (file == null) {
return null;