Free cookie consent management tool by TermsFeed Policy Generator

Changeset 491 for trunk/sources


Ignore:
Timestamp:
08/11/08 13:29:13 (16 years ago)
Author:
gkronber
Message:

minor bugfix: only inject variables that are local and havn't been deleted by the user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjector.cs

    r487 r491  
    8181      foreach(VariableInfo info in VariableInfos) {
    8282        if(info.Local) {
    83           scope.AddVariable(new Variable(info.ActualName, (IItem)GetVariable(info.FormalName).Value.Clone()));
     83          IVariable var = GetVariable(info.FormalName);
     84          if(var!=null) scope.AddVariable(new Variable(info.ActualName, (IItem)var.Value.Clone()));
    8485        }
    8586      }
Note: See TracChangeset for help on using the changeset viewer.