Skip to content

Commit

Permalink
Prevent NPE in CommandFusionBean. Part of #281.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtmartensson committed Aug 14, 2021
1 parent b854796 commit 4cd9b2d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -61,8 +61,8 @@ public String getVersion() {
private void setVersion(String version) {
//java.lang.String oldVersion = this.version;
this.version = version != null ? version : NOT_INITIALIZED;
versionLabel.setEnabled(hardware.isValid());
versionLiteralLabel.setEnabled(hardware.isValid());
versionLabel.setEnabled(isOpen());
versionLiteralLabel.setEnabled(isOpen());
versionLabel.setText(this.version); // Looks ugly if this is null.
//propertyChangeSupport.firePropertyChange(PROP_VERSION, oldVersion, version);
}
Expand Down

0 comments on commit 4cd9b2d

Please sign in to comment.