diff options
Diffstat (limited to 'libjava/java/lang/natString.cc')
-rw-r--r-- | libjava/java/lang/natString.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/lang/natString.cc b/libjava/java/lang/natString.cc index 53bda1f..88168e3 100644 --- a/libjava/java/lang/natString.cc +++ b/libjava/java/lang/natString.cc @@ -524,7 +524,7 @@ java::lang::String::toCharArray() jboolean java::lang::String::equalsIgnoreCase (jstring anotherString) { - if (count != anotherString->count) + if (anotherString == NULL || count != anotherString->count) return false; register jchar *tptr = JvGetStringChars (this); register jchar *optr = JvGetStringChars (anotherString); |