mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-37993 - NPE: RepositoryAttachDialog.process
This commit is contained in:
+3
-2
@@ -238,8 +238,9 @@ public class RepositoryAttachDialog extends DialogWrapper {
|
||||
final int prevSize = myCoordinates.size();
|
||||
for (Pair<MavenArtifactInfo, MavenRepositoryInfo> each : artifacts) {
|
||||
myCoordinates.put(each.first.getGroupId() + ":" + each.first.getArtifactId() + ":" + each.first.getVersion(), each);
|
||||
if (each.second != null && !myRepositories.containsKey(each.second.getUrl())) {
|
||||
myRepositories.put(each.second.getUrl(), each.second);
|
||||
String url = each.second != null? each.second.getUrl() : null;
|
||||
if (StringUtil.isNotEmpty(url) && !myRepositories.containsKey(url)) {
|
||||
myRepositories.put(url, each.second);
|
||||
}
|
||||
}
|
||||
String title = getTitle();
|
||||
|
||||
Reference in New Issue
Block a user