> +         return null;
> +      }
> +
> +      SecurityGroupInZone rawGroup = new 
> SecurityGroupInZone(sgApi.get().get(groupId), zone);
> +
> +      return groupConverter.apply(rawGroup);
> +   }
> +
> +   @Override
> +   public SecurityGroup createSecurityGroup(String name, Location location) {
> +      String zone = location.getId();
> +      if (zone != null) {
> +         return createSecurityGroup(name, zone);
> +      } else {
> +         return null;
> +      }

As in places above, use
```
if (zone == null) {
  return null;
}
return createSecurityGroup(name, zone);
```
?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/144/files#r6344657

Reply via email to