Open carlosventoso opened 6 years ago
If you try this : palindrome.isPalindrome(null) it throws java.lang.NullPointerException. Solutions:
palindrome.isPalindrome(null)
Cath the NullPointerException and return false.
Document.
Solved with a if (string == null)
if (string == null)
If you try this :
palindrome.isPalindrome(null)
it throws java.lang.NullPointerException. Solutions:Cath the NullPointerException and return false.
Document.