Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-49170] NPE can be thrown on null triggers list
Protect about possible null value for the triggers attribute. This shouldn't be possible now with the current code, so I suppose from reading the code and doing some archeology that it was not 100% protected before 3ad2875 for instance where I see some defensive checks were added. Protecting against this seen in production: ``` java.lang.NullPointerException at org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty.stopTriggers(PipelineTriggersJobProperty.java:96) at org.jenkinsci.plugins.workflow.job.WorkflowJob.removeProperty(WorkflowJob.java:580) at hudson.model.Job.removeProperty(Job.java:535) at org.jenkinsci.plugins.workflow.job.WorkflowJob.setTriggers(WorkflowJob.java:540) ```
- Loading branch information