mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +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) {
|
||||
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