Ignore:
Timestamp:
05/10/10 00:51:36 (12 years ago)
Author:
swagner
Message:

Fixed exception thrown in OperatorGraph views when removing one of the operator parameters of a MultiOperator (#1004)

File:
1 edited

Legend:

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

    r3566 r3729  
    225225      else {
    226226        IValueParameter opParam = (IValueParameter)sender;
    227         foreach (TreeNode node in opParamNodeTable[opParam].ToArray())
    228           ClearTreeNode(node);
    229         foreach (TreeNode node in opParamNodeTable[opParam]) {
    230           node.Text = opParam.Name + ": ";
    231           FillTreeNode(node, (IOperator)opParam.Value);
     227        if (opParamNodeTable.ContainsKey(opParam)) {
     228          foreach (TreeNode node in opParamNodeTable[opParam].ToArray())
     229            ClearTreeNode(node);
     230          foreach (TreeNode node in opParamNodeTable[opParam]) {
     231            node.Text = opParam.Name + ": ";
     232            FillTreeNode(node, (IOperator)opParam.Value);
     233          }
    232234        }
    233235      }
Note: See TracChangeset for help on using the changeset viewer.