#1 Fix null check on first parameter performed twice

open
nobody
None
5
2007-09-12
2007-09-12
Josh Graham
No

Index: C:/dev/PROJECTS/ProTest/trunk/src/main/java/com/thoughtworks/protest/candidate/ReverseCandidateComparator.java

--- C:/dev/PROJECTS/ProTest/trunk/src/main/java/com/thoughtworks/protest/candidate/ReverseCandidateComparator.java (revision 171)
+++ C:/dev/PROJECTS/ProTest/trunk/src/main/java/com/thoughtworks/protest/candidate/ReverseCandidateComparator.java (working copy)
@@ -41,7 +41,7 @@
if(first == null)
throw new NullPointerException("first");

- if(first == null)
+ if(second == null)
throw new NullPointerException("second");

return second.getScore() - first.getScore();

Discussion


Log in to post a comment.