mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Gradle: EA-53148 - NPE: AbstractExternalSystemConfigurable.getProjectName
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ public abstract class AbstractExternalSystemConfigurable<
|
||||
@NotNull
|
||||
protected String getProjectName(@NotNull String path) {
|
||||
File file = new File(path);
|
||||
return file.isDirectory() ? file.getName() : file.getParentFile().getName();
|
||||
return file.isDirectory() || file.getParentFile() == null ? file.getName() : file.getParentFile().getName();
|
||||
}
|
||||
|
||||
private void prepareSystemSettings(@NotNull SystemSettings s) {
|
||||
|
||||
Reference in New Issue
Block a user