Changeset 1808 for trunk/eraser6


Ignore:
Timestamp:
2/10/2010 10:41:58 AM (5 years ago)
Author:
lowjoel
Message:

Fixed crash when the progress dialog is invoked before any steps have been declared.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/ProgressForm.cs

    r1802 r1808  
    147147        { 
    148148            TaskProgressChangedEventArgs e2 = (TaskProgressChangedEventArgs)e.UserState; 
    149  
    150             status.Text = targetProgress.CurrentStep.Name; 
     149            if (targetProgress.CurrentStep != null) 
     150                status.Text = targetProgress.CurrentStep.Name; 
     151 
    151152            if (e2 != null) 
    152153            { 
Note: See TracChangeset for help on using the changeset viewer.