From d0947bbda0c8c9b540832e70fc48b5cc495648fa Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 21 May 2012 02:44:26 -0600 Subject: [PATCH] fixed NPE --- .../vcloud/functions/VAppTemplatesForCatalogItems.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apis/vcloud/src/main/java/org/jclouds/vcloud/functions/VAppTemplatesForCatalogItems.java b/apis/vcloud/src/main/java/org/jclouds/vcloud/functions/VAppTemplatesForCatalogItems.java index e73d5a43d1..c440d5ae2b 100644 --- a/apis/vcloud/src/main/java/org/jclouds/vcloud/functions/VAppTemplatesForCatalogItems.java +++ b/apis/vcloud/src/main/java/org/jclouds/vcloud/functions/VAppTemplatesForCatalogItems.java @@ -43,6 +43,7 @@ import org.jclouds.vcloud.domain.VAppTemplate; import com.google.common.base.Function; import com.google.common.base.Predicate; +import com.google.common.base.Predicates; import com.google.common.base.Throwables; /** @@ -79,7 +80,7 @@ public class VAppTemplatesForCatalogItems implements Function apply(Iterable from) { - return Iterables2.concreteCopy(transformParallel(filter(from, new Predicate() { + return Iterables2.concreteCopy(filter(transformParallel(filter(from, new Predicate() { @Override public boolean apply(CatalogItem input) { @@ -95,7 +96,7 @@ public class VAppTemplatesForCatalogItems implements Function