mirror of https://github.com/apache/jclouds.git
return false when node is null
This commit is contained in:
parent
a6429398fd
commit
8ab1d7f26c
|
@ -213,7 +213,7 @@ public class NodePredicates {
|
||||||
return new Predicate<NodeMetadata>() {
|
return new Predicate<NodeMetadata>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(NodeMetadata nodeMetadata) {
|
public boolean apply(NodeMetadata nodeMetadata) {
|
||||||
return nodeMetadata.getGroup() != null;
|
return nodeMetadata != null && nodeMetadata.getGroup() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue