KostyaSha / github-integration-plugin

Jenkins GitHub Integration Plugin
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Integration+Plugin
MIT License
98 stars 86 forks source link

fix: fix nullpointerexception when body is null #390

Closed kvanzuijlen closed 1 month ago

kvanzuijlen commented 1 month ago

An exception will occur when the body is null (empty) and a pr description check is configured. This change will fall back to an empty string when the body is null (and thus empty).

Piece of webhook content:

{
  "action": "reopened",
  "number": 1144,
  "pull_request": {
    ...,
    "body": null,
    ...
  },
  ...
}

This change is Reviewable