Skip to content

Commit

Permalink
Merge branch 'main' into 2521-bug-changset-mapping-from-tfvc-repo-to-…
Browse files Browse the repository at this point in the history
…git-repo-fails-during-work-item-migration
  • Loading branch information
MrHinsh authored Dec 3, 2024
2 parents f637718 + 0af6562 commit e4e5865
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private void ValidateAllUsersExistOrAreMapped(List<WorkItemData> 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 "
Expand Down

0 comments on commit e4e5865

Please sign in to comment.