mirror of https://github.com/apache/jclouds.git
Protects from NPE input.getLocation() is nullable
This commit is contained in:
parent
c689d31758
commit
a32690a2e0
|
@ -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