mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
avoid NPE in String.equalsIgnoreCase
This commit is contained in:
parent
5b23ad3f40
commit
8c18f27e89
@ -235,7 +235,7 @@ public final class String
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean equalsIgnoreCase(String s) {
|
public boolean equalsIgnoreCase(String s) {
|
||||||
return this == s || compareToIgnoreCase(s) == 0;
|
return this == s || (s != null && compareToIgnoreCase(s) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int compareTo(String s) {
|
public int compareTo(String s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user