The expression obj.Equals(null)
should always be false.
The program uses the Equals()
method to compare an object with null
. The contract of the Equals()
method requires this comparison to always return false.
[1] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 398, CWE ID 754
[2] Standards Mapping - SANS Top 25 2010 - (SANS 2010) Risky Resource Management - CWE ID 754