AttackFlow Findings Dictionary

Finding A Way To Try AttackFlow Enterprise Edition?

If so, click to download 15 days full version for free!

Incorrect Call to Equals with Null

The Equals method never returns true with null argument

Severity

Low

Fix Cost

Low

Trust Level

High

Equals method is used to determine whether the specified object is equal to the current object. When null is passed to Equals method for null check, it either throws NullReferenceException when the object that Equals is called on is null or false the object is not null.

            
if(myObj.Equals(null))
{
  ...
}
                 
            

equals method is used to determine whether the specified object is equal to the current object. When null is passed to equals method for null check, it either throws NullPointerException when the object that Equals is called on is null or false the object is not null.

            
if(myObj.equals(null))
{
...
}
                 
            

equals method is used to determine whether the specified object is equal to the current object. When null is passed to equals method for null check, it either throws NullPointerException when the object that Equals is called on is null or false the object is not null.

            
if(myObj.equals(null))
{
...
}
                 
            

Finding A Way To Purchase AttackFlow Enterprise Edition?

If so, click to buy now for yearly subscriptions!