Skip to content

Commit

Permalink
Update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Mar 19, 2024
1 parent 79b5880 commit 88692cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private void ValidateAllUsersExistOrAreMapped(List<WorkItemData> sourceWorkItems
contextLog.Information("Validating::Check that all users in the source exist in the target or are mapped!");
List<IdentityMapData> usersToMap = new List<IdentityMapData>();
usersToMap = _userMappingEnricher.GetUsersInSourceMappedToTargetForWorkItems(sourceWorkItems);
if (usersToMap?.Count > 0)
if (usersToMap != null && usersToMap?.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 been mapped. Use the ExportUsersForMapping processor to create a list of mappable users. Then Import using ", usersToMap.Count);
}
Expand Down

0 comments on commit 88692cc

Please sign in to comment.