[
https://issues.jenkins-ci.org/browse/JENKINS-13998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163439#comment-163439
]
Joe Hansche commented on JENKINS-13998:
---------------------------------------
This happens when there are no workflow actions available to the Jenkins user.
For some reason the SOAP API responds with a {{null}} entry instead of an empty
array. The workaround is to grant the Jenkins user access to all necessary
workflow steps (this is a requirement anyway!). I'm making a new change to at
least handle this gracefully.
> NPE while looking up workflow actions
> -------------------------------------
>
> Key: JENKINS-13998
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13998
> Project: Jenkins
> Issue Type: Bug
> Components: jira
> Reporter: Joe Hansche
> Assignee: Joe Hansche
> Labels: npe
>
> The functionality from JENKINS-13652 hits a NullPointerException while
> looking up workflow actions:
> {noformat}FATAL: null
> java.lang.NullPointerException
> at
> hudson.plugins.jira.JiraSession.getActionIdForIssue(JiraSession.java:293)
> at
> hudson.plugins.jira.JiraSite.progressMatchingIssues(JiraSite.java:472)
> at
> hudson.plugins.jira.JiraIssueUpdateBuilder.perform(JiraIssueUpdateBuilder.java:96)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
> at
> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
> at hudson.model.Build$RunnerImpl.build(Build.java:178)
> at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
> at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
> at hudson.model.Run.run(Run.java:1438)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:239){noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira