correct me if I'm wrong.
If str
has a character such as "•
" in it then running:
str.toLowerCase(Locale.English);
throws a null pointer exception. That's the behavior I'm seeing.
So what's the deal here? What's going on? It isn't specified that toLowerCase throws a null pointer exception.
Is there an easy way to get around this? I need the str to be lower case to be able to use a case insensitive contains check with another string, but I need the string to contain those characters for it to be displayed correctly.
What would you say is the most efficient solution if there is no "easy way?"