Merge pull request #369 from lostdj/patch-7

String.equalsIgnoreCase(): fix nullptrex.
This commit is contained in:
Joel Dice 2014-11-19 08:14:30 -07:00
commit 97cc9f091f

View File

@ -186,7 +186,7 @@ public final class String
if (this == s) {
return true;
} else {
return s.length == length && compareToIgnoreCase(s) == 0;
return s != null && s.length == length && compareToIgnoreCase(s) == 0;
}
}