Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE when includeURLS is null #1

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

sebasrobert
Copy link

We have a NullPointerException when running in our jenkins instance
when we don't specifiy includeURLS

Stack from jenkins log:

ERROR: Build step failed with exception
java.lang.NullPointerException
at appscanstdrintegration.appscanstandard.utilities.AppScanStandardManualExploreFile.createManualExploreFile(AppScanStandardManualExploreFile.java:60)
at appscanstdrdintegration.appscanstandard.AppScanStandardBuilder.perform(AppScanStandardBuilder.java:366)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Build step 'Run AppScan Standard' marked build as failure

We have a NullPointerException when running in our jenkins instance
when we don't specifiy includeURLS
@tlopesPT tlopesPT merged commit 6c6abee into jenkinsci:master Aug 11, 2017
@tlopesPT
Copy link
Contributor

Thank you for your contribution sebasrobert.
Although I could not reproduce the problem, the changes have been merged.

Deploying a new release to Jenkins in a few minutes.

@sebasrobert
Copy link
Author

Actually we found out that the issue is caused because the node includeURLs is not in the config.xml when the job is created with JobDSL. Saving the config through the UI always save the element but with empty value. Thanks for your quick response, really appreciated ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants