mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-33002 - NPE: ModuleAttachProcessor.attachToProject
This commit is contained in:
@@ -70,12 +70,15 @@ public class ModuleAttachProcessor extends ProjectAttachProcessor {
|
||||
token.finish();
|
||||
}
|
||||
}
|
||||
for(String file: projectDir.list()) {
|
||||
if (FileUtil.getExtension(file).equals("iml")) {
|
||||
VirtualFile imlFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(projectDir, file));
|
||||
if (imlFile != null) {
|
||||
attachModule(project, imlFile, callback);
|
||||
return true;
|
||||
final String[] files = projectDir.list();
|
||||
if (files != null) {
|
||||
for(String file: files) {
|
||||
if (FileUtil.getExtension(file).equals("iml")) {
|
||||
VirtualFile imlFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(projectDir, file));
|
||||
if (imlFile != null) {
|
||||
attachModule(project, imlFile, callback);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user