don't print exception message if it's a null string.