結果 : how to avoid null pointer exception while comparing two strings in java