v79
08/10/2017, 7:27 PMif(bridgeName == null || bridgeName.isEmpty()) {
errors.put("add-search-name","Name must not be blank")
} else {
if(4 > bridgeName.length) {
}
works fine, but if I replace the if condition with if(bridgeName.isNullOrEmpty())
the name length check isn't null safe.karelpeeters
08/10/2017, 9:02 PMv79
08/10/2017, 9:09 PMkarelpeeters
08/10/2017, 9:11 PM