String.equalsIgnoreCase(): fix nullptrex.

It's logical and conforms OpenJDK..
This commit is contained in:
Timofey Lagutin 2014-11-19 14:06:31 +03:00
parent 0b89357968
commit e657863656

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;
}
}