Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/19 14:49:15 (5 years ago)
Author:
bburlacu
Message:

#3005: Add null check to prevent exception in ConstrainedValueParameterView

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Parameters.Views/3.3/ConstrainedValueParameterView.cs

    r16872 r16890  
    102102      base.SetEnabledStateOfControls();
    103103      valueGroupBox.Enabled = Content != null;
    104       valueComboBox.Enabled = (valueComboBox.Items.Count > 0) && !Content.ReadOnly && !ReadOnly;
     104      valueComboBox.Enabled = Content != null && valueComboBox.Items.Count > 0 && !Content.ReadOnly && !ReadOnly;
    105105      showInRunCheckBox.Enabled = Content != null && !ReadOnly;
    106106    }
Note: See TracChangeset for help on using the changeset viewer.