CWE-185

GPTKB entity

Statements (13)
Predicate Object
gptkbp:instance_of gptkb:Common_Weakness_Enumeration
gptkbp:bfsLayer 6
gptkbp:bfsParent gptkb:CWE-74
gptkbp:category Code Quality
gptkbp:difficulty gptkb:Low
gptkbp:example if (x != null) { ... } if (x != null) { ... }
https://www.w3.org/2000/01/rdf-schema#label CWE-185
gptkbp:impact Can lead to unnecessary code execution.
gptkbp:is_described_as The software performs a null check on a variable that has already been checked for null.
gptkbp:name Redundant Null Check
gptkbp:recommendation Remove redundant null checks.
gptkbp:related_to CWE-570
CWE-571