Exception clearly identifies the problem. Your hotelType is a String object and you must check if it's not null. And you are trying to do


null.compareToIgnoreCase("3-star")

What do you...