Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 03:28:16 (14 years ago)
Author:
swagner
Message:

Restricted types of child operators in MultiOperator (#979)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ValueParameterCollectionView.cs

    r3393 r3407  
    5858      if (createParameterDialog.ShowDialog(this) == DialogResult.OK) {
    5959        IValueParameter param = (IValueParameter)createParameterDialog.Parameter;
    60         if (Content.ContainsKey(param.Name))
     60        if ((param != null) && Content.ContainsKey(param.Name))
    6161          param = (IValueParameter)Activator.CreateInstance(param.GetType(), GetUniqueName(param.Name), param.Description);
    6262        return param;
    63       } else
    64         return null;
     63      }
     64      return null;
    6565    }
    6666  }
Note: See TracChangeset for help on using the changeset viewer.