SyntaxFix
Write A Post
Hire A Developer
Questions
Use org.apache.commons.lang3.StringUtils:
name = StringUtils.defaultString(city.getName(), "N/A");