-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: credentials-binding-plugin
-
Environment:see attached about.html
with the following:
{{ Â steps {}}
{{ Â Â withCredentials([}}
{{ Â Â Â string(credentialsId: params.GITHUB_PASSWORD, variable: 'GITHUB_PASSWORD'),}}
{{ Â Â Â string(credentialsId: params.GITHUB_APP_SECRET, variable: 'GITHUB_APP_SECRET')}}
  ]) {
   ansiblePlaybook(   {{   }}
    ...
   )
{{Â Â }}}
{{Â }}}
Â
if param.GITHUB_PASSWORD is null (not defined), a NullPointerException is raised.
The code in com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById should check for null value of id and provide a more useful message than a stacktrace.
Â
Â