mirror of https://github.com/apache/jclouds.git
fixed NPE
This commit is contained in:
parent
5c647df129
commit
d0947bbda0
|
@ -43,6 +43,7 @@ import org.jclouds.vcloud.domain.VAppTemplate;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
|
import com.google.common.base.Predicates;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,7 +80,7 @@ public class VAppTemplatesForCatalogItems implements Function<Iterable<CatalogIt
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterable<VAppTemplate> apply(Iterable<CatalogItem> from) {
|
public Iterable<VAppTemplate> apply(Iterable<CatalogItem> from) {
|
||||||
return Iterables2.concreteCopy(transformParallel(filter(from, new Predicate<CatalogItem>() {
|
return Iterables2.concreteCopy(filter(transformParallel(filter(from, new Predicate<CatalogItem>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(CatalogItem input) {
|
public boolean apply(CatalogItem input) {
|
||||||
|
@ -95,7 +96,7 @@ public class VAppTemplatesForCatalogItems implements Function<Iterable<CatalogIt
|
||||||
returnNullOnAuthorizationException);
|
returnNullOnAuthorizationException);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, executor, null, logger, "vappTemplates in"));
|
}, executor, null, logger, "vappTemplates in"), Predicates.notNull()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue