Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Should be using StringUtils.isEmpty instead of doing a null check.
if ( !StringUtils.isEmpty(project.getScmUsername()) ) { providerRepository.setUser( project.getScmUsername() ); if ( project.getScmPassword() != null ) { providerRepository.setPassword( project.getScmPassword() ); } else { providerRepository.setPassword( "" ); } }