Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException when getting the job info of a multi target job

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

cdancycommented, Apr 19, 2021

@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.

cdancycommented, Dec 8, 2021

We’ve released a lot of recent fixes. Folks are free to test them out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found