diff --git a/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs b/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs index 2dd8b86a..1137cf60 100644 --- a/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs +++ b/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs @@ -229,7 +229,7 @@ private void ValidateAllUsersExistOrAreMapped(List sourceWorkItems { contextLog.Information("Validating::Check that all users in the source exist in the target or are mapped!"); IdentityMapResult usersToMap = CommonTools.UserMapping.GetUsersInSourceMappedToTargetForWorkItems(this, sourceWorkItems); - if (usersToMap.IdentityMap != null && usersToMap.IdentityMap.Count > 0) + if (usersToMap != null && usersToMap.IdentityMap != null && usersToMap.IdentityMap.Count > 0) { Log.LogWarning("Validating Failed! There are {usersToMap} users that exist in the source that do not exist " + "in the target. This will not cause any errors, but may result in disconnected users that could have "