You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[15:48:46 INF] [16.0.3] Loading 1 Work Items
[15:48:50 WRN] [16.0.3] [SKIP] Already Exists a Link of type System.LinkTypes.Hierarchy-Forward where wiSourceL=653007, wiSourceR=661669, wiTargetL=84, wiTargetR=90
[15:48:50 INF] [16.0.3] GitRepositoryEnricher: Enriching 84 To fix Git Repo Links
[15:48:51 ERR] [16.0.3] System.NullReferenceException: Object reference not set to an instance of an object.
at MigrationTools.Tools.TfsGitRepositoryTool.Enrich(TfsProcessor processor, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Tools\TfsGitRepositoryTool.cs:line 112
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.ProcessWorkItemLinks(IWorkItemMigrationClient sourceStore, IWorkItemMigrationClient targetStore, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 658
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.<ProcessWorkItemAsync>d__32.MoveNext() in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 554
System.NullReferenceException: Object reference not set to an instance of an object.
at MigrationTools.Tools.TfsGitRepositoryTool.Enrich(TfsProcessor processor, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Tools\TfsGitRepositoryTool.cs:line 112
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.ProcessWorkItemLinks(IWorkItemMigrationClient sourceStore, IWorkItemMigrationClient targetStore, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 658
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.<ProcessWorkItemAsync>d__32.MoveNext() in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 554
Error logged to Elmah.io!
MrHinsh
changed the title
Validation chwecks for MigrationTools:CommonTools:TfsGitRepositoryTool
Validation checks for MigrationTools:CommonTools:TfsGitRepositoryToolOct 1, 2024
✨ (TfsGitRepositoryTool): add validation and logging for
TfsGitRepositoryTool options
Add a check to ensure the TfsGitRepositoryEnricher is enabled before
proceeding, logging a warning if it is not. This prevents unnecessary
operations when the feature is disabled. Introduce a default
initialization for the Mappings dictionary to avoid null references.
Implement a new options validator class,
TfsGitRepositoryToolOptionsValidator, to ensure that Mappings is always
initialized, enhancing robustness and preventing runtime errors. These
changes improve the reliability and maintainability of the tool by
ensuring proper configuration and logging.
Closes#2410
Discussed in #2409
Originally posted by hunorkantor October 1, 2024
The text was updated successfully, but these errors were encountered: