Skip to content

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Dec 3, 2024

🐛 (TfsWorkItemMigrationProcessor.cs): add null check for usersToMap to prevent potential null reference exception

The change adds a null check for the usersToMap object before accessing its IdentityMap property. This prevents a potential null reference exception if usersToMap is null, ensuring the application handles such cases gracefully and improves overall stability.

FYI @satano

Closes: #2544
Discussion: #2540

…o prevent potential null reference exception

The change adds a null check for the `usersToMap` object before accessing its `IdentityMap` property. This prevents a potential null reference exception if `usersToMap` is null, ensuring the application handles such cases gracefully and improves overall stability.
@MrHinsh MrHinsh enabled auto-merge December 3, 2024 15:12
@MrHinsh MrHinsh merged commit 0af6562 into main Dec 3, 2024
11 checks passed
@MrHinsh MrHinsh deleted the fix-for-null-refernce-on-user-mappings branch December 3, 2024 15:22
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2545.westeurope.5.azurestaticapps.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependancy on TfsUserMappings

1 participant