external system: reuse module library w/o name model

This commit is contained in:
Vladislav.Soroka
2015-11-23 18:57:27 +03:00
parent 046f44d34b
commit 7ac2ffe72d
@@ -185,7 +185,7 @@ public class LibraryDependencyDataService extends AbstractDependencyDataService<
moduleLibraryKey.add(ExternalSystemApiUtil.getLocalFileSystemPath(file) + moduleLibraryOrderEntry.getScope().name());
}
LibraryDependencyData existing = moduleLibrariesToImport.remove(moduleLibraryKey);
if (existing == null || !StringUtil.equals(existing.getInternalName(), library.getName())) {
if (existing == null || !StringUtil.equals(StringUtil.nullize(existing.getInternalName()), library.getName())) {
moduleRootModel.removeOrderEntry(entry);
}
else {