mirror of https://github.com/apache/jclouds.git
Protects from NPE input.getLocation() is nullable
This commit is contained in:
parent
f7b4534132
commit
7c5927038a
|
@ -116,7 +116,7 @@ public class AzureComputeSecurityGroupExtension implements SecurityGroupExtensio
|
|||
return ImmutableSet.copyOf(filter(securityGroups, new Predicate<SecurityGroup>() {
|
||||
@Override
|
||||
public boolean apply(SecurityGroup input) {
|
||||
return locations.contains(input.getLocation().getId());
|
||||
return input.getLocation() != null && locations.contains(input.getLocation().getId());
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue