From 8ab1d7f26ce330442788fd70c5ef072e66c7d1e3 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 30 Mar 2012 18:32:16 -0700 Subject: [PATCH] return false when node is null --- .../java/org/jclouds/compute/predicates/NodePredicates.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/main/java/org/jclouds/compute/predicates/NodePredicates.java b/compute/src/main/java/org/jclouds/compute/predicates/NodePredicates.java index f1cc800cdc..32cd732d0f 100644 --- a/compute/src/main/java/org/jclouds/compute/predicates/NodePredicates.java +++ b/compute/src/main/java/org/jclouds/compute/predicates/NodePredicates.java @@ -213,7 +213,7 @@ public class NodePredicates { return new Predicate() { @Override public boolean apply(NodeMetadata nodeMetadata) { - return nodeMetadata.getGroup() != null; + return nodeMetadata != null && nodeMetadata.getGroup() != null; } @Override