C#
C-sharp : Incorrect comparison with NULL
Classification
CWE
Overview
The application compares the object to null using Equals(). Expression obj.Equals(null) always returns false.
According to msdn, all implementations of Equals() must not throw exceptions; they should always return a value. For example, if obj is null, the Equals() method should return false instead of throwing an ArgumentNullException.
LOW
DerScanner Severity Score
Check your C# code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
