Skip to content

Workaround: look up `ApprovedWhitelist` via a supertype

ci.jenkins.io / SpotBugs failed Jan 3, 2024 in 0s

1 new issue

Total New Outstanding Fixed Trend
1 1 0 0 👎

Reference build: Plugins » script-security-plugin » master #339

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 1 0

Annotations

Check warning on line 975 in src/main/java/org/jenkinsci/plugins/scriptsecurity/scripts/ScriptApproval.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval$ApprovedWhitelist.configurationChanged() due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>