NullPointerException when getting the job info of a multi target job
See original GitHub issueWhen getting the JobInfo
of a job of class org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject
, a NullPointerException
is thrown, along with the message “Null color”.
Expected Behavior
Not sure.
Current Behavior
The attached output is produced (stacktrace + http log): output.log
Steps to Reproduce
If root/multiTarget
is a jenkins job of class org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject
, calling
val jobInfo = client.api().jobsApi().jobInfo("root", "multiTarget")
will throw the described exception, with an output similar to the one attached.
Your Environment
Jenkins v2.176.3
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Getting null pointer exception while trying to call a service ...
Try adding SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); in your public void execute(JobExecutionContext arg0) ...
Read more >How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >java.lang.NullPointerException in job when there is no quality ...
Description. A job fail with a java exception. the cause seem to be the Warnings Next Generation. It happen when the threshold are...
Read more >Control-M Application Integrator jobs may end NOT OK with ...
Control-M Application Integrator jobs may end NOT OK with the error message "UCM0004 = java.lang.NullPointerException" when running a large number of jobs ......
Read more >Producer Failed to Send Data and Threw ... - 华为云
An MRS cluster has ZooKeeper and Kafka installed.When the Producer client sends data to Kafka, it fails and throws "NullPointerException".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@29jm the fix is committed on the
master
branch. I’m not sure if you’re familiar or comfortable with building locally and testing that out but if you could that would be great. Otherwise I can kick a new point release.We’ve released a lot of recent fixes. Folks are free to test them out.