Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Contributor count breaks with an NPE when encountering an empty repo. #592

Closed
nleach999 opened this issue Oct 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@nleach999
Copy link

Describe the bug

When running the contributor count utility, it throws an NPE when it encounters a repository that does not contain code. The enumeration ends.

Expected behavior

It should see the repo is empty and move on without stopping the enumeration.

Actual behavior

While enumerating an org's repos, it encountered a repo with no code in it. It threw an NPE and exited the program.

Steps to reproduce

  1. Use a GitHub org (it probably does the same in other SCMs, I only tried GitHub)
  2. Create a new repository, don't add any files to it.
  3. Run the contributor count tool to enumerate the org.

Environment

CLI 2.0.58
Powershell on an unknown Windows version.

Additional comments

N/A

Logs

image

@nleach999 nleach999 added the bug Something isn't working label Oct 5, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

Internal Jira issue: AST-30571

@pedrompflopes
Copy link
Collaborator

Hi @nleach999
Thanks for raising the issue. We are currently fixing it under #599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants