correct me if I am wrong.
If str has a character of type " • " in it, then:
str.toLowerCase(Locale.English);
throws a null pointer exception. This is the behavior that I see.
So what's the deal? What's happening? It is not indicated that toLowerCase throws a null pointer exception.
Is there an easy way around this? I need str to be lowercase in order to be able to use case insensitive, contains a check with a different string, but I need a string containing these characters so that it displays correctly.
What would you say is the most effective solution if there is no “easy way?”
java string unicode
Victor Jul 27 '09 at 19:49 2009-07-27 19:49
source share