mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
String.equalsIgnoreCase(): fix nullptrex.
It's logical and conforms OpenJDK..
This commit is contained in:
parent
0b89357968
commit
e657863656
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user