mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Merge pull request #369 from lostdj/patch-7
String.equalsIgnoreCase(): fix nullptrex.
This commit is contained in:
commit
97cc9f091f
@ -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