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/ParameterCollectionView.cs

    r3393 r3407  
    5555      if (createParameterDialog.ShowDialog(this) == DialogResult.OK) {
    5656        IParameter param = createParameterDialog.Parameter;
    57         if (Content.ContainsKey(param.Name))
     57        if ((param != null) && Content.ContainsKey(param.Name))
    5858          param = (IParameter)Activator.CreateInstance(param.GetType(), GetUniqueName(param.Name), param.Description);
    5959        return param;
    60       } else
    61         return null;
     60      }
     61      return null;
    6262    }
    6363  }
Note: See TracChangeset for help on using the changeset viewer.