StringUtils.isEmpty() checks null or "" string. your null check is extraneous.