mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +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) {
|
if (this == s) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} 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