Configure kotlin: fix NPE for Idea 145 of higher
#KT-11772 Fixed
This commit is contained in:
@@ -289,7 +289,10 @@ public abstract class KotlinWithGradleConfigurator implements KotlinProjectConfi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@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);
|
VirtualFile file = VfsUtil.findFileByIoFile(new File(path), true);
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user