]
Josef Cacek commented on ELY-752:
---------------------------------
Thanks David, it was updated in the Scan results..
Coverity static analysis: Dereference null return value in
SerializedPermissionCollection (Elytron)
---------------------------------------------------------------------------------------------------
Key: ELY-752
URL:
https://issues.jboss.org/browse/ELY-752
Project: WildFly Elytron
Issue Type: Bug
Reporter: Josef Cacek
Assignee: Darran Lofthouse
Labels: static_analysis
Coverity static-analysis scan found possible use of null object comming from
{{SerializedPermissionCollection.readResolve()}} method.
https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=57600...
The {{newPermissionCollection()}} call may return null in the code:
{code}
final PermissionCollection collection = s.newPermissionCollection();
{code}
It's than used without a null-check in the method:
{code}
for (Permission permission : p) {
collection.add(permission);
}
if (r) collection.setReadOnly();
{code}