mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
Merge pull request #4712 from rzats/bugfix-4696
CM: Fix null versions in the contribution manager (#4696)
This commit is contained in:
@@ -461,7 +461,7 @@ class DetailPanel extends JPanel {
|
||||
desc.append("</font> ");
|
||||
|
||||
String version = contrib.getPrettyVersion();
|
||||
if (version != null) {
|
||||
if (version != null && !version.equals("null")) {
|
||||
desc.append(version);
|
||||
}
|
||||
desc.append(" <br/>");
|
||||
|
||||
@@ -259,12 +259,24 @@ class StatusPanel extends JPanel {
|
||||
|
||||
if (panel.getContrib().isCompatible(Base.getRevision())) {
|
||||
if (installButton.isEnabled()) {
|
||||
updateLabel.setText(latestVersion + " available");
|
||||
if (latestVersion != null) {
|
||||
updateLabel.setText(latestVersion + " available");
|
||||
} else {
|
||||
updateLabel.setText("Available");
|
||||
}
|
||||
} else {
|
||||
updateLabel.setText(currentVersion + " installed");
|
||||
if (currentVersion != null && !currentVersion.equals("null")) {
|
||||
updateLabel.setText(currentVersion + " installed");
|
||||
} else {
|
||||
updateLabel.setText("Installed");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
updateLabel.setText(currentVersion + " not compatible");
|
||||
if (currentVersion != null && !currentVersion.equals("null")) {
|
||||
updateLabel.setText(currentVersion + " not compatible");
|
||||
} else {
|
||||
updateLabel.setText("Not compatible");
|
||||
}
|
||||
}
|
||||
|
||||
if (latestVersion != null) {
|
||||
|
||||
Reference in New Issue
Block a user