mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Project Structure: don't fail with NPE if a project contains invalid repository library
This commit is contained in:
+3
-3
@@ -116,13 +116,13 @@ public class RepositoryLibraryDescription {
|
||||
}
|
||||
|
||||
public String getDisplayName(String version) {
|
||||
if (version.equals(LatestVersionId)) {
|
||||
if (LatestVersionId.equals(version)) {
|
||||
version = LatestVersionDisplayName;
|
||||
}
|
||||
else if (version.equals(ReleaseVersionId)) {
|
||||
else if (ReleaseVersionId.equals(version)) {
|
||||
version = ReleaseVersionDisplayName;
|
||||
}
|
||||
return getDisplayName() + ":" + version;
|
||||
return getDisplayName() + (version == null ? "" : ":" + version);
|
||||
}
|
||||
|
||||
public String getMavenCoordinates(String version) {
|
||||
|
||||
Reference in New Issue
Block a user