Skip to content

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

2 participants