Skip to content

Return null when repo type not set in getRepository - #3781

Merged
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:fix-no-repo-handling
Jun 3, 2026
Merged

Return null when repo type not set in getRepository#3781
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:fix-no-repo-handling

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

getRepository incorrectly assumes repositoryType is always set to a valid value, leading to the error described in #3780 when it is not. This PR fixes the issue by returning null if one or both of the repository URL and type aren't set. Fixes #3780.

`getRepository` incorrectly assumes `repositoryType` is always set to a valid value, leading to the error described in Kitware#3780 when it is not.  This PR fixes the issue by returning null if one or both of the repository URL and type aren't set.  Fixes Kitware#3780.

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josephsnyder
josephsnyder enabled auto-merge June 3, 2026 18:54
@josephsnyder
josephsnyder added this pull request to the merge queue Jun 3, 2026
Merged via the queue into Kitware:master with commit f3a05a9 Jun 3, 2026
13 of 14 checks passed
@williamjallen
williamjallen deleted the fix-no-repo-handling branch June 4, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to display test results if a project has a repository URL but a 'None' repository type

2 participants