]
Ilia Vassilev commented on ELY-754:
-----------------------------------
The issue is resolved by the PR [1] sent for ELY-753.
[1]
Coverity static analysis: Explicit null dereferenced in
IdentityCredentials (Elytron)
-------------------------------------------------------------------------------------
Key: ELY-754
URL:
https://issues.jboss.org/browse/ELY-754
Project: WildFly Elytron
Issue Type: Bug
Reporter: Josef Cacek
Assignee: Ilia Vassilev
Labels: static_analysis
Coverity static-analysis scan found possible use of null object in
{{IdentityCredentials.contains(Class)}} method.
https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=58628...
The method returns
{code}
return contains(credentialType, null);
{code}
If the virtual call resolves to type {{CredentailNode}}, then the {{contains()}} call may
result in NPE, because the {{null}} is used as {{algorthmName}} in:
{code}
return credentialType.isInstance(credential) &&
algorithmName.equals(((AlgorithmCredential) credential).getAlgorithm());
{code}