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

Fix NullPointerException when autoboxing #460

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

rsandell
Copy link
Member

A regression from #456 . When projectId is null and the untouched long getProjectId() is called the JVM will throw a NullPointerException because it can't autobox null to any value of long.

This caused a regression in some script and CasC tools.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@rsandell rsandell requested a review from jetersen as a code owner November 20, 2024 13:45
@basil basil added the bug Something isn't working label Nov 21, 2024
@basil basil changed the title Fix Autoboxing NPE Fix NullPointerException when autoboxing Nov 21, 2024
@basil basil merged commit 4c830bc into jenkinsci:master Nov 21, 2024
18 checks passed
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

Successfully merging this pull request may close these issues.

2 participants