Changeset 2102


Ignore:
Timestamp:
05/14/10 14:10:15 (5 years ago)
Author:
lowjoel
Message:

Handle instances properly when empty tasks are somehow created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Manager/Task.cs

    r2019 r2102  
    114114            { 
    115115                //Simple case, the task name was given by the user. 
    116                 if (Name.Length != 0) 
     116                if (!string.IsNullOrEmpty(Name)) 
    117117                    return Name; 
    118118 
    119119                string result = string.Empty; 
    120                 if (Targets.Count < 5) 
     120                if ( Targets.Count == 0) 
     121                    return result; 
     122                else if (Targets.Count < 5) 
    121123                { 
    122124                    //Simpler case, small set of data. 
Note: See TracChangeset for help on using the changeset viewer.