Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionEqualityConstraint.cs
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionEqualityConstraint.cs
r5445 r6760 30 30 [StorableClass] 31 31 [Item("RunCollectionEqualityConstraint", "A constraint which checks the members of the contained runs for equality to the constraint data.")] 32 public class RunCollectionEqualityConstraint : EqualityConstraint, IRunCollectionCo nstraint {32 public class RunCollectionEqualityConstraint : EqualityConstraint, IRunCollectionColumnConstraint { 33 33 [StorableConstructor] 34 34 protected RunCollectionEqualityConstraint(bool deserializing) : base(deserializing) { } … … 100 100 foreach (IRun run in ConstrainedValue.Where(r => r.Visible)) { 101 101 IItem item = ConstrainedValue.GetValue(run, constraintColumn); 102 if ( !base.Check(item.ToString()))102 if (item != null && !base.Check(item.ToString())) 103 103 run.Visible = false; 104 104 }
Note: See TracChangeset
for help on using the changeset viewer.