Skip to content

Commit 00a2e81

Browse files
authored
Update TfsWorkItemMigrationProcessor.cs
ClosedDate population called two times. One time without exception handling. If there is no "Microsoft.VSTS.Common.ClosedDate" in the oldWorkItem it will crash.
1 parent 6405291 commit 00a2e81

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,6 @@ private void PopulateWorkItem(WorkItemData oldWorkItemData, WorkItemData newWork
417417
}
418418

419419
newWorkItem.Title = oldWorkItem.Title;
420-
if (newWorkItem.Fields.Contains("Microsoft.VSTS.Common.ClosedDate") && newWorkItem.Fields["Microsoft.VSTS.Common.ClosedDate"].IsEditable)
421-
{
422-
newWorkItem.Fields["Microsoft.VSTS.Common.ClosedDate"].Value = oldWorkItem.Fields["Microsoft.VSTS.Common.ClosedDate"].Value;
423-
}
424420
newWorkItem.State = oldWorkItem.State;
425421
try
426422
{

0 commit comments

Comments
 (0)