jenkinsci / gitlab-branch-source-plugin

A Jenkins Plugin for GitLab Multibranch Pipeline jobs and Folder Organization
https://plugins.jenkins.io/gitlab-branch-source
MIT License
124 stars 94 forks source link

Fix `NullPointerException` when autoboxing #460

Closed rsandell closed 2 days ago

rsandell commented 3 days ago

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