mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-49794 - NPE fix
This commit is contained in:
+6
-1
@@ -52,7 +52,12 @@ public class GradleAutoImportAware implements ExternalSystemAutoImportAware {
|
||||
}
|
||||
Map<String /* config dir path */, String /* config file path */> rootPaths = ContainerUtilRt.newHashMap();
|
||||
for (ExternalProjectSettings setting : projectsSettings) {
|
||||
rootPaths.put(new File(setting.getExternalProjectPath()).getParentFile().getAbsolutePath(), setting.getExternalProjectPath());
|
||||
if(setting != null && setting.getExternalProjectPath() != null) {
|
||||
File rootPath = new File(setting.getExternalProjectPath());
|
||||
if(rootPath.getParentFile() != null) {
|
||||
rootPaths.put(rootPath.getParentFile().getAbsolutePath(), setting.getExternalProjectPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (File f = new File(changedFileOrDirPath).getParentFile(); f != null; f = f.getParentFile()) {
|
||||
|
||||
Reference in New Issue
Block a user