Skip to content

Commit d2b6dfc

Browse files
author
schallee@darkmist.net
committed
Remove double null check thanks to find bugs...
1 parent 019f139 commit d2b6dfc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/owasp/esapi/util/NullSafe.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ public static boolean equals(Object a, Object b)
1919
{
2020
if(a==b) // short cut same object
2121
return true;
22-
if(a == null)
23-
return (b == null);
24-
if(b == null)
22+
if(a == null || b == null)
2523
return false;
2624
return a.equals(b);
2725
}

0 commit comments

Comments
 (0)