private static boolean isEmptyOrNull ( GitLocation location ) { return location == null || ( StringUtils . isEmptyOrNull ( location . getRepository ( ) ) && StringUtils . isEmptyOrNull ( location . getBranch ( ) ) && StringUtils . isEmptyOrNull ( location . getRevision ( ) ) ) ; }
Returns true if a git location object is null or all of its values are empty or null .