Potential bad use of null-like value
Bug #1853274 reported by
ddylihfq
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Invalid
|
Undecided
|
Unassigned |
Bug Description
A recent Coverity scan found a potential issue in cfg.py:line 2662
On line 2642 there is a null_check: Comparing 'group' to a null-like value implies that 'group' might be null-like.
(if group is None and name in self._groups:)
Then on line 2662, accessing a property of null-like value 'group' is noted.
(group_name = group.name if group else None)
Coverity screen shot attached with clearer detail.
Is this a potential issue or a false positive? If so this would be classed as CWE-476: NULL Pointer Dereference.
To post a comment you must log in.
No pickup on this yet?