return false when node is null

This commit is contained in:
Adrian Cole 2012-03-30 18:32:16 -07:00
parent a6429398fd
commit 8ab1d7f26c
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ public class NodePredicates {
return new Predicate<NodeMetadata>() {
@Override
public boolean apply(NodeMetadata nodeMetadata) {
return nodeMetadata.getGroup() != null;
return nodeMetadata != null && nodeMetadata.getGroup() != null;
}
@Override